summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-altera.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2015-06-17 20:59:43 +0900
committerLinus Walleij <linus.walleij@linaro.org>2015-07-16 00:11:02 +0200
commit1c8b5d688d7ef401c209f3fc84b7de8296f8908a (patch)
tree9e08d8a874fa7855f5624a4adc165bc30203b999 /drivers/gpio/gpio-altera.c
parentd58ec58f40dc188fbb08edaa8c17840f71fe8a0e (diff)
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>
Diffstat (limited to 'drivers/gpio/gpio-altera.c')
-rw-r--r--drivers/gpio/gpio-altera.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-altera.c b/drivers/gpio/gpio-altera.c
index 0f3d336d6303..675d15d6e9be 100644
--- a/drivers/gpio/gpio-altera.c
+++ b/drivers/gpio/gpio-altera.c
@@ -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[] = {