Commit 3555c260 authored by Leifu Zhao's avatar Leifu Zhao Committed by Benjamin Cabé
Browse files

drivers: serial: sedi: add ifndef to uart busy set

The uart_busy_set and uart_busy_clear are only used when runtime
pm is not enabled. So add #ifndef CONFIG_PM_DEVICE_RUNTIME to
enclose these two functions.

Signed-off-by: default avatarLeifu Zhao <leifu.zhao@intel.com>
parent b921db66
Loading
Loading
Loading
Loading
+2 −0
Changes for drivers/serial/uart_sedi.c: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -123,6 +123,7 @@ struct uart_sedi_drv_data {
	uint8_t busy_count;
};

#ifndef CONFIG_PM_DEVICE_RUNTIME
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
static void uart_busy_set(const struct device *dev)
{
@@ -148,6 +149,7 @@ static void uart_busy_clear(const struct device *dev)
	}
}
#endif
#endif

#ifdef CONFIG_PM_DEVICE