pinctrl: pinctrl-at91-pio4: Set irq handler and data in one go
authorMartin Kaiser <martin@kaiser.cx>
Sun, 8 Nov 2020 18:01:44 +0000 (19:01 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 11 Nov 2020 14:47:07 +0000 (15:47 +0100)
Replace the two separate calls for setting the irq handler and data with a
single irq_set_chained_handler_and_data() call.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20201108180144.28594-1-martin@kaiser.cx
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-at91-pio4.c

index 578b387..157fea8 100644 (file)
@@ -1127,8 +1127,8 @@ static int atmel_pinctrl_probe(struct platform_device *pdev)
                        return -EINVAL;
                }
                atmel_pioctrl->irqs[i] = res->start;
-               irq_set_chained_handler(res->start, atmel_gpio_irq_handler);
-               irq_set_handler_data(res->start, atmel_pioctrl);
+               irq_set_chained_handler_and_data(res->start,
+                       atmel_gpio_irq_handler, atmel_pioctrl);
                dev_dbg(dev, "bank %i: irq=%pr\n", i, res);
        }