summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-xgene.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/gpio-xgene.c')
-rw-r--r--drivers/gpio/gpio-xgene.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/gpio/gpio-xgene.c b/drivers/gpio/gpio-xgene.c
index e25ba14fbb64..f1944d496c3b 100644
--- a/drivers/gpio/gpio-xgene.c
+++ b/drivers/gpio/gpio-xgene.c
@@ -216,12 +216,9 @@ err:
static int xgene_gpio_remove(struct platform_device *pdev)
{
struct xgene_gpio *gpio = platform_get_drvdata(pdev);
- int ret = 0;
- ret = gpiochip_remove(&gpio->chip);
- if (ret)
- dev_err(&pdev->dev, "unable to remove gpio_chip.\n");
- return ret;
+ gpiochip_remove(&gpio->chip);
+ return 0;
}
#ifdef CONFIG_OF