gpio: tb10x: Drop unneeded free_irq() call
authorAxel Lin <axel.lin@ingics.com>
Thu, 28 May 2015 09:26:10 +0000 (17:26 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 2 Jun 2015 09:25:42 +0000 (11:25 +0200)
Current code uses devm_request_irq() in .probe, so drop the unneeded
free_irq() call in .remove.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Christian Ruppert <christian.ruppert@alitech.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-tb10x.c

index 46b8961..12c99d9 100644 (file)
@@ -292,7 +292,6 @@ static int tb10x_gpio_remove(struct platform_device *pdev)
                                        BIT(tb10x_gpio->gc.ngpio) - 1, 0, 0);
                kfree(tb10x_gpio->domain->gc);
                irq_domain_remove(tb10x_gpio->domain);
-               free_irq(tb10x_gpio->irq, tb10x_gpio);
        }
        gpiochip_remove(&tb10x_gpio->gc);