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)
committerGeorgi Djakov <georgi.djakov@linaro.org>
Mon, 28 Dec 2020 12:03:02 +0000 (14:03 +0200)
commitc6174c0e058fc0a54e0b9787c44cb24b0a8d0217
treef22dc37359b01094eb2cec5d419b893ea0576120
parent512d4a26abdbd11c6ffa03032740e5ab3c62c55b
interconnect: imx: Add a missing of_node_put after of_device_is_available

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>
drivers/interconnect/imx/imx.c