gpio: dwapb: add missing fwnode_handle_put() in dwapb_gpio_get_pdata()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sun, 10 Jul 2016 02:17:36 +0000 (02:17 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 22 Jul 2016 13:30:42 +0000 (15:30 +0200)
commitbfab7c8ff89a9dddbe9a08299c24f5e2bf3953f9
treee53a7f10511269837a0fdfd7dcaf03863b2e3019
parentfcce9f14f07db15650d84650293e2207f7dabbfa
gpio: dwapb: add missing fwnode_handle_put() in dwapb_gpio_get_pdata()

fwnode_handle_put() should be used when terminating
device_for_each_child_node() iteration with break or
return to prevent stale device node references from
being left behind.

Generated by Coccinelle.

Fixes: 4ba8cfa79f44 ("gpio: dwapb: convert device node to fwnode")
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-dwapb.c