Commit 1c8b5d68 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Linus Walleij

gpio: altera: fix return value of altera_gpio_remove()

The remove callback never succeeds, which seems odd.
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: default avatarAlexandre Courbot <acourbot@nvidia.com>
Acked-by: default avatarTien Hock Loh <thloh@altera.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent d58ec58f
......@@ -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[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment