Skip to content

Commit

Permalink
gpio: altera: fix return value of altera_gpio_remove()
Browse files Browse the repository at this point in the history
The remove callback never succeeds, which seems odd.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Acked-by: Tien Hock Loh <thloh@altera.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Masahiro Yamada authored and Linus Walleij committed Jul 15, 2015
1 parent d58ec58 commit 1c8b5d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpio/gpio-altera.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ static int altera_gpio_remove(struct platform_device *pdev)

gpiochip_remove(&altera_gc->mmchip.gc);

return -EIO;
return 0;
}

static const struct of_device_id altera_gpio_of_match[] = {
Expand Down

0 comments on commit 1c8b5d6

Please sign in to comment.