Fix invalid return value in gpio remove function Signed-off-by: Jacopo Mondi <jac...@jmondi.org> --- drivers/gpio/gpio-rz.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-rz.c b/drivers/gpio/gpio-rz.c index a933dab..cb8f785 100644 --- a/drivers/gpio/gpio-rz.c +++ b/drivers/gpio/gpio-rz.c @@ -175,7 +175,8 @@ static int rz_gpio_remove(struct platform_device *pdev) { struct rz_gpio_priv *p = platform_get_drvdata(pdev); - return gpiochip_remove(&p->gpio_chip); + gpiochip_remove(&p->gpio_chip); + return 0; } static const struct of_device_id rz_gpio_dt_ids[] = { -- 2.7.4