From: Masahiro Yamada Date: Wed, 17 Jun 2015 11:59:43 +0000 (+0900) Subject: gpio: altera: fix return value of altera_gpio_remove() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1c8b5d688d7ef401c209f3fc84b7de8296f8908a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git gpio: altera: fix return value of altera_gpio_remove() The remove callback never succeeds, which seems odd. Signed-off-by: Masahiro Yamada Reviewed-by: Alexandre Courbot Acked-by: Tien Hock Loh Signed-off-by: Linus Walleij --- 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[] = {