Skip to content

Commit

Permalink
pinctrl: sirf: Remove gpiochip on failure cases
Browse files Browse the repository at this point in the history
This patch releases gpiochip related resources by calling
gpiochip_remove when gpiochip_irqchip_add fails.

CC: Linus Walleij <[email protected]>
CC: Barry Song <[email protected]>
CC: Rongjun Ying <[email protected]>
CC: Yuping Luo <[email protected]>
Signed-off-by: Pramod Gurav <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
  • Loading branch information
Pramod Gurav authored and linusw committed Sep 4, 2014
1 parent f712c55 commit 0a5d667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pinctrl/sirf/pinctrl-sirf.c
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ static int sirfsoc_gpio_probe(struct device_node *np)
if (err) {
dev_err(&pdev->dev,
"could not connect irqchip to gpiochip\n");
goto out;
goto out_banks;
}

for (i = 0; i < SIRFSOC_GPIO_NO_OF_BANKS; i++) {
Expand Down

0 comments on commit 0a5d667

Please sign in to comment.