mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 21:51:05 +00:00
pinctrl: sirf: Remove gpiochip on failure cases
This patch releases gpiochip related resources by calling gpiochip_remove when gpiochip_irqchip_add fails. CC: Linus Walleij <linus.walleij@linaro.org> CC: Barry Song <Baohua.Song@csr.com> CC: Rongjun Ying <rongjun.ying@csr.com> CC: Yuping Luo <yuping.luo@csr.com> Signed-off-by: Pramod Gurav <pramod.gurav@smartplayin.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
f712c554a7
commit
0a5d667048
1 changed files with 1 additions and 1 deletions
|
@ -853,7 +853,7 @@ static int sirfsoc_gpio_probe(struct device_node *np)
|
||||||
if (err) {
|
if (err) {
|
||||||
dev_err(&pdev->dev,
|
dev_err(&pdev->dev,
|
||||||
"could not connect irqchip to gpiochip\n");
|
"could not connect irqchip to gpiochip\n");
|
||||||
goto out;
|
goto out_banks;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < SIRFSOC_GPIO_NO_OF_BANKS; i++) {
|
for (i = 0; i < SIRFSOC_GPIO_NO_OF_BANKS; i++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue