]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
gpiolib: clear irq handler and data in one go
authorMartin Kaiser <martin@kaiser.cx>
Wed, 18 Oct 2017 16:32:47 +0000 (18:32 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 19 Oct 2017 20:32:41 +0000 (22:32 +0200)
Replace the two separate calls for clearing the irqchip's chained handler
and its data with a single irq_set_chained_handler_and_data() call.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c

index 5acff8db513615175f2111b836a30584e06bf166..e7372093d968af9c8456e337ea88963da8bd44bb 100644 (file)
@@ -1724,8 +1724,8 @@ static void gpiochip_irqchip_remove(struct gpio_chip *gpiochip)
        acpi_gpiochip_free_interrupts(gpiochip);
 
        if (gpiochip->irq_chained_parent) {
-               irq_set_chained_handler(gpiochip->irq_chained_parent, NULL);
-               irq_set_handler_data(gpiochip->irq_chained_parent, NULL);
+               irq_set_chained_handler_and_data(
+                       gpiochip->irq_chained_parent, NULL, NULL);
        }
 
        /* Remove all IRQ mappings and delete the domain */