diff options
-rw-r--r-- | drivers/gpio/gpiolib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 6fdae789ccc9..550e575c6ffb 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c | |||
@@ -514,7 +514,8 @@ static void gpiochip_irqchip_remove(struct gpio_chip *gpiochip) | |||
514 | /* Remove all IRQ mappings and delete the domain */ | 514 | /* Remove all IRQ mappings and delete the domain */ |
515 | if (gpiochip->irqdomain) { | 515 | if (gpiochip->irqdomain) { |
516 | for (offset = 0; offset < gpiochip->ngpio; offset++) | 516 | for (offset = 0; offset < gpiochip->ngpio; offset++) |
517 | irq_dispose_mapping(gpiochip->irq_base + offset); | 517 | irq_dispose_mapping( |
518 | irq_find_mapping(gpiochip->irqdomain, offset)); | ||
518 | irq_domain_remove(gpiochip->irqdomain); | 519 | irq_domain_remove(gpiochip->irqdomain); |
519 | } | 520 | } |
520 | 521 | ||