diff options
| author | Martin Kaiser <martin@kaiser.cx> | 2017-10-18 12:32:47 -0400 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2017-10-19 16:32:41 -0400 |
| commit | 5048f0aefb96fe3fd468002c879d7a5918336b1f (patch) | |
| tree | 47e24f4f7e70fa15cf47e6c9cc1dbfb55d996db7 /drivers/gpio | |
| parent | 3ee9e605caea401b060a1f9f81343b8bd0952fbd (diff) | |
gpiolib: clear irq handler and data in one go
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>
Diffstat (limited to 'drivers/gpio')
| -rw-r--r-- | drivers/gpio/gpiolib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 5acff8db5136..e7372093d968 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c | |||
| @@ -1724,8 +1724,8 @@ static void gpiochip_irqchip_remove(struct gpio_chip *gpiochip) | |||
| 1724 | acpi_gpiochip_free_interrupts(gpiochip); | 1724 | acpi_gpiochip_free_interrupts(gpiochip); |
| 1725 | 1725 | ||
| 1726 | if (gpiochip->irq_chained_parent) { | 1726 | if (gpiochip->irq_chained_parent) { |
| 1727 | irq_set_chained_handler(gpiochip->irq_chained_parent, NULL); | 1727 | irq_set_chained_handler_and_data( |
| 1728 | irq_set_handler_data(gpiochip->irq_chained_parent, NULL); | 1728 | gpiochip->irq_chained_parent, NULL, NULL); |
| 1729 | } | 1729 | } |
| 1730 | 1730 | ||
| 1731 | /* Remove all IRQ mappings and delete the domain */ | 1731 | /* Remove all IRQ mappings and delete the domain */ |
