pinctrl: pinctrl-at91-pio4: Set irq handler and data in one go
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>
This commit is contained in:
parent
80f1803dbc
commit
3603a537bf
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue