Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

serial: atmel: Use platform_get_irq() to get the interrupt

Accessing platform device resources directly has long been deprecated for
DT as IRQ resources may not be available at device creation time. Drivers
continuing to use static IRQ resources is blocking removing the static setup
from the DT core code.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20211215224832.1985402-1-robh@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Rob Herring and committed by
Greg Kroah-Hartman
5bb221b0 8a1dcae9

+1 -1
+1 -1
drivers/tty/serial/atmel_serial.c
··· 2493 2493 port->fifosize = 1; 2494 2494 port->dev = &pdev->dev; 2495 2495 port->mapbase = mpdev->resource[0].start; 2496 - port->irq = mpdev->resource[1].start; 2496 + port->irq = platform_get_irq(mpdev, 0); 2497 2497 port->rs485_config = atmel_config_rs485; 2498 2498 port->iso7816_config = atmel_config_iso7816; 2499 2499 port->membase = NULL;