serial: uart_pl011: Fix compile error for CONFIG_UART_INTERRUPT_DRIVEN=n

When the uart is configured in non interrupt mode, then the mmio address
should be provided via DEVICE_MMIO_ROM_INIT.

Signed-off-by: Ayan Kumar Halder <ayankuma@amd.com>
This commit is contained in:
Ayan Kumar Halder 2022-08-04 16:31:55 +01:00 committed by Fabio Baltieri
parent 722b2418cb
commit 25ed2875a8

View file

@ -467,7 +467,7 @@ void pl011_isr(const struct device *dev)
#else
#define PL011_CONFIG_PORT(n) \
static struct pl011_config pl011_cfg_port_##n = { \
.uart = (volatile struct pl011_regs *)DT_INST_REG_ADDR(n), \
DEVICE_MMIO_ROM_INIT(DT_DRV_INST(n)), \
.sys_clk_freq = DT_INST_PROP_BY_PHANDLE(n, clocks, clock_frequency), \
};
#endif /* CONFIG_UART_INTERRUPT_DRIVEN */