mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 08:08:54 +00:00
gpio: altera: fix return value of altera_gpio_remove()
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>
This commit is contained in:
parent
d58ec58f40
commit
1c8b5d688d
1 changed files with 1 additions and 1 deletions
|
@ -340,7 +340,7 @@ static int altera_gpio_remove(struct platform_device *pdev)
|
||||||
|
|
||||||
gpiochip_remove(&altera_gc->mmchip.gc);
|
gpiochip_remove(&altera_gc->mmchip.gc);
|
||||||
|
|
||||||
return -EIO;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct of_device_id altera_gpio_of_match[] = {
|
static const struct of_device_id altera_gpio_of_match[] = {
|
||||||
|
|
Loading…
Reference in a new issue