diff options
Diffstat (limited to 'drivers/gpio/gpio-adp5588.c')
-rw-r--r-- | drivers/gpio/gpio-adp5588.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpio/gpio-adp5588.c b/drivers/gpio/gpio-adp5588.c index ef19bc33f2bd..3beed6ea8c65 100644 --- a/drivers/gpio/gpio-adp5588.c +++ b/drivers/gpio/gpio-adp5588.c | |||
@@ -470,11 +470,7 @@ static int adp5588_gpio_remove(struct i2c_client *client) | |||
470 | if (dev->irq_base) | 470 | if (dev->irq_base) |
471 | free_irq(dev->client->irq, dev); | 471 | free_irq(dev->client->irq, dev); |
472 | 472 | ||
473 | ret = gpiochip_remove(&dev->gpio_chip); | 473 | gpiochip_remove(&dev->gpio_chip); |
474 | if (ret) { | ||
475 | dev_err(&client->dev, "gpiochip_remove failed %d\n", ret); | ||
476 | return ret; | ||
477 | } | ||
478 | 474 | ||
479 | kfree(dev); | 475 | kfree(dev); |
480 | return 0; | 476 | return 0; |