interconnect: imx: Add a missing of_node_put after of_device_is_available
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 28 Dec 2020 12:03:02 +0000 (14:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Jan 2021 13:17:01 +0000 (14:17 +0100)
commit6a0e580ded884443dfda297f0bf0c6f7a4c395e6
tree4975ac96b4ffd21450b16b6c07c9233e0d63326d
parente5689d84ebd8dbe1222ce15147214b3118d8219b
interconnect: imx: Add a missing of_node_put after of_device_is_available

commit c6174c0e058fc0a54e0b9787c44cb24b0a8d0217 upstream.

Add an 'of_node_put()' call when a tested device node is not available.

Fixes: f0d8048525d7 ("interconnect: Add imx core driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20201206121304.29381-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/interconnect/imx/imx.c