Commit b4c0ec5b authored by Dominik Lau's avatar Dominik Lau Committed by Benjamin Cabé
Browse files

drivers: serial: ns16550: allow clock_control_on returning ENOSYS



Fixes a regression caused by: 88830a3b
The ns16550 driver should handle possibility of
clock_control_on being a stub (i.e. returning ENOSYS)

Signed-off-by: default avatarDominik Lau <dlau@antmicro.com>
parent 5dbf61ae
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -621,7 +621,7 @@ static int uart_ns16550_configure(const struct device *dev,
		}

		ret = clock_control_on(dev_cfg->clock_dev, dev_cfg->clock_subsys);
		if (ret != 0 && ret != -EALREADY) {
		if (ret != 0 && ret != -EALREADY && ret != -ENOSYS) {
			goto out;
		}