gpio: lynxpoint: avoid potential warning on error path
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().
Signed-off-by Andy Shevchenko <[email protected]>
--- drivers/gpio/gpio-lynxpoint.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpio/gpio-lynxpoint.c +0 -1
@@ -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
Quoted 4 lines · Andy Shevchenko
When devres API is in use we are not supposed to call plain
gpiochip_remove(). Remove redundant call togpiochip_remove().Signed-off-by Andy Shevchenko <[email protected]>
Good catch!
Acked-by Mika Westerberg <[email protected]>
Quoted 4 lines · Andy Shevchenko
When devres API is in use we are not supposed to call plain
gpiochip_remove(). Remove redundant call togpiochip_remove().Signed-off-by Andy Shevchenko <[email protected]>
Patch applied with Mika's ACK.
Yours,
Linus Walleij