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: Leifu Zhao <leifu.zhao@intel.com>
This commit is contained in:
Leifu Zhao 2025-06-06 16:18:00 +08:00 committed by Benjamin Cabé
commit 3555c26053

View file

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