Skip to content

Commit 11bda5e

Browse files
laudominikkartben
authored andcommitted
drivers: serial: ns16550: allow clock_control_on returning ENOSYS
Fixes a regression caused by: 88830a3 The ns16550 driver should handle possibility of clock_control_on being a stub (i.e. returning ENOSYS) Signed-off-by: Dominik Lau <[email protected]> (cherry picked from commit b4c0ec5)
1 parent 433f65f commit 11bda5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/serial/uart_ns16550.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ static int uart_ns16550_configure(const struct device *dev,
621621
}
622622

623623
ret = clock_control_on(dev_cfg->clock_dev, dev_cfg->clock_subsys);
624-
if (ret != 0 && ret != -EALREADY) {
624+
if (ret != 0 && ret != -EALREADY && ret != -ENOSYS) {
625625
goto out;
626626
}
627627

0 commit comments

Comments
 (0)