pinctrl: k210: call of_node_put()
authorZhangPeng <zhangpeng362@huawei.com>
Tue, 22 Nov 2022 07:58:53 +0000 (07:58 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 22 Nov 2022 08:35:27 +0000 (09:35 +0100)
commita8acc11643082a706de86a19f1f824712d971984
tree4d7caac661d239d4ef5423b284e8c105e7f4fc8d
parentac8a616c32e12f01878d54f2e7077720dc3dc305
pinctrl: k210: call of_node_put()

Since for_each_available_child_of_node() will increase the refcount of
node, we need to call of_node_put() manually when breaking out of the
iteration.

Fixes: d4c34d09ab03 ("pinctrl: Add RISC-V Canaan Kendryte K210 FPIOA driver")
Signed-off-by: ZhangPeng <zhangpeng362@huawei.com>
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Link: https://lore.kernel.org/r/20221122075853.2496680-1-zhangpeng362@huawei.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-k210.c