mfd: ti_am335x_tscadc: Ensure a balanced number of node get/put
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 15 Oct 2021 08:14:26 +0000 (10:14 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 20 Oct 2021 16:07:46 +0000 (17:07 +0100)
commit29f95e8bea2982a20280c1424dca643c3dc5f14d
tree1692341dc7958df2e23a6660d20f521669b96088
parentd9d604c7fea7e1b64f980e227c2225f5970c24fc
mfd: ti_am335x_tscadc: Ensure a balanced number of node get/put

of_node_put() should be called after a successful of_get_child_by_name().

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20211015081506.933180-9-miquel.raynal@bootlin.com
drivers/mfd/ti_am335x_tscadc.c