Skip to contentSkip to conversation

gpio: lynxpoint: avoid potential warning on error path

PATCH In review Andy Shevchenko 3 participants 3 messages Jun 19, 2016 – Jun 23, 2016 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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().

---
 drivers/gpio/gpio-lynxpoint.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpio/gpio-lynxpoint.c +0 -1
index 9df015e..fbd393b 100644
@@ -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;
 		}
 
Signature · 1 line
2.8.1