Message ID | 1480929605-28564-2-git-send-email-jacopo@jmondi.org (mailing list archive) |
---|---|
State | RFC |
Delegated to: | Simon Horman |
Headers | show |
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[] = {
Fix invalid return value in gpio remove function Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> --- drivers/gpio/gpio-rz.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)