Skip to content
Commit 66339f2f authored by yu kuai's avatar yu kuai Committed by Linus Walleij
Browse files

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: 51302162 ("PINCTRL: SiRF: add GPIO and GPIO irq support in CSR SiRFprimaII")
Signed-off-by: default avataryu kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20200603013532.755220-1-yukuai3@huawei.com


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 9eb72832
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment