From: Andy Shevchenko Date: Sun, 19 Jun 2016 16:06:44 +0000 (+0300) Subject: gpio: lynxpoint: avoid potential warning on error path X-Git-Tag: v4.14-rc1~2827^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7eebe96f22e7968656a64458620f5cdabee8903c;p=platform%2Fkernel%2Flinux-rpi.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 9df015e..fbd393b 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; }