Jelajahi Sumber

gpio: tb10x: Drop unneeded free_irq() call

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>
Axel Lin 10 tahun lalu
induk
melakukan
81d49ce8a8
1 mengubah file dengan 0 tambahan dan 1 penghapusan
  1. 0 1
      drivers/gpio/gpio-tb10x.c

+ 0 - 1
drivers/gpio/gpio-tb10x.c

@@ -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);