aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-pca953x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/gpio-pca953x.c')
-rw-r--r--drivers/gpio/gpio-pca953x.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c
index 4b8446e98de5..5e4d3f23156a 100644
--- a/drivers/gpio/gpio-pca953x.c
+++ b/drivers/gpio/gpio-pca953x.c
@@ -517,8 +517,10 @@ out_failed:
517 517
518static void pca953x_irq_teardown(struct pca953x_chip *chip) 518static void pca953x_irq_teardown(struct pca953x_chip *chip)
519{ 519{
520 if (chip->irq_base != -1) 520 if (chip->irq_base != -1) {
521 irq_free_descs(chip->irq_base, chip->gpio_chip.ngpio);
521 free_irq(chip->client->irq, chip); 522 free_irq(chip->client->irq, chip);
523 }
522} 524}
523#else /* CONFIG_GPIO_PCA953X_IRQ */ 525#else /* CONFIG_GPIO_PCA953X_IRQ */
524static int pca953x_irq_setup(struct pca953x_chip *chip, 526static int pca953x_irq_setup(struct pca953x_chip *chip,