From 3555c260531ff277c71cf988eef54a9c262b8cf1 Mon Sep 17 00:00:00 2001 From: Leifu Zhao Date: Fri, 6 Jun 2025 16:18:00 +0800 Subject: [PATCH] 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 --- drivers/serial/uart_sedi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/serial/uart_sedi.c b/drivers/serial/uart_sedi.c index 1bee633b36c..d0ef1e0285a 100644 --- a/drivers/serial/uart_sedi.c +++ b/drivers/serial/uart_sedi.c @@ -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