drivers: serial: pl011: Fix typo bug in port1 support

In the DT_INST conversion we introduced a typo bug of accessing port0
instead of port1 in the IRQ config function.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-03-16 07:59:20 -05:00 committed by Ioannis Glaropoulos
commit 8bf05c7d61

View file

@ -532,21 +532,21 @@ static void pl011_irq_config_func_1(struct device *dev)
IRQ_CONNECT(DT_INST_1_ARM_PL011_IRQ_TX,
DT_INST_1_ARM_PL011_IRQ_TX_PRIORITY,
pl011_isr,
DEVICE_GET(pl011_port_0),
DEVICE_GET(pl011_port_1),
0);
irq_enable(DT_INST_1_ARM_PL011_IRQ_TX);
IRQ_CONNECT(DT_INST_1_ARM_PL011_IRQ_RX,
DT_INST_1_ARM_PL011_IRQ_RX_PRIORITY,
pl011_isr,
DEVICE_GET(pl011_port_0),
DEVICE_GET(pl011_port_1),
0);
irq_enable(DT_INST_1_ARM_PL011_IRQ_RX);
IRQ_CONNECT(DT_INST_1_ARM_PL011_IRQ_RXTIM,
DT_INST_1_ARM_PL011_IRQ_RXTIM_PRIORITY,
pl011_isr,
DEVICE_GET(pl011_port_0),
DEVICE_GET(pl011_port_1),
0);
irq_enable(DT_INST_1_ARM_PL011_IRQ_RXTIM);
#endif