]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: sirf: add missing put_device() call in sirfsoc_gpio_probe()
authoryu kuai <yukuai3@huawei.com>
Wed, 3 Jun 2020 01:35:32 +0000 (09:35 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 3 Jun 2020 12:32:28 +0000 (14:32 +0200)
commit11c716f11cd578647fbd7870bea364f6e7b43c90
treeaf743ea0534290162a22fb2826ccbffe686d38ee
parent3eb4139ba686c3f7ccc32046936a74d048013392
pinctrl: sirf: add missing put_device() call in sirfsoc_gpio_probe()

A coccicheck run provided information like the following:

drivers/pinctrl/sirf/pinctrl-sirf.c:798:2-8: ERROR: missing put_device;
call of_find_device_by_node on line 792, but without a corresponding
object release within this function.

Generated by: scripts/coccinelle/free/put_device.cocci

Thus add a jump target to fix the exception handling for this
function implementation.

Fixes: ae86c4ca6128 ("PINCTRL: SiRF: add GPIO and GPIO irq support in CSR SiRFprimaII")
Signed-off-by: yu kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20200603013532.755220-1-yukuai3@huawei.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sirf/pinctrl-sirf.c