drivers: serial: ns16550: clock subsys correction

Fix clock subsys property selection when having multiple uart device
that uses ns16550 driver.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
This commit is contained in:
Martin Hoff 2025-06-05 14:15:08 +02:00 committed by Dan Kalowsky
commit 91f4082a52

View file

@ -1940,7 +1940,7 @@ static DEVICE_API(uart, uart_ns16550_driver_api) = {
.sys_clk_freq = 0, \
.clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(n)), \
.clock_subsys = (clock_control_subsys_t) DT_INST_PHA(\
0, clocks, clkid), \
n, clocks, clkid), \
) \
) \
IF_ENABLED(DT_INST_NODE_HAS_PROP(n, pcp), \