From: Andy Shevchenko Date: Sun, 19 Jun 2016 16:06:44 +0000 (+0300) Subject: gpio: lynxpoint: avoid potential warning on error path X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7eebe96f22e7968656a64458620f5cdabee8903c;p=linux-beck.git gpio: lynxpoint: avoid potential warning on error path When devres API is in use we are not supposed to call plain gpiochip_remove(). Remove redundant call to gpiochip_remove(). Signed-off-by: Andy Shevchenko Acked-by: Mika Westerberg Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-lynxpoint.c b/drivers/gpio/gpio-lynxpoint.c index 9df015e85ad9..fbd393b46ce0 100644 --- a/drivers/gpio/gpio-lynxpoint.c +++ b/drivers/gpio/gpio-lynxpoint.c @@ -383,7 +383,6 @@ static int lp_gpio_probe(struct platform_device *pdev) handle_simple_irq, IRQ_TYPE_NONE); if (ret) { dev_err(dev, "failed to add irqchip\n"); - gpiochip_remove(gc); return ret; }