提交 1c8b5d68 编写于 作者: M Masahiro Yamada 提交者: Linus Walleij

gpio: altera: fix return value of altera_gpio_remove()

The remove callback never succeeds, which seems odd.
Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: NAlexandre Courbot <acourbot@nvidia.com>
Acked-by: NTien Hock Loh <thloh@altera.com>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 d58ec58f
...@@ -340,7 +340,7 @@ static int altera_gpio_remove(struct platform_device *pdev) ...@@ -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[] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册