Skip to content

Commit 3555c26

Browse files
leifuzhaokartben
authored andcommitted
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 <[email protected]>
1 parent b921db6 commit 3555c26

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/serial/uart_sedi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ struct uart_sedi_drv_data {
123123
uint8_t busy_count;
124124
};
125125

126+
#ifndef CONFIG_PM_DEVICE_RUNTIME
126127
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
127128
static void uart_busy_set(const struct device *dev)
128129
{
@@ -148,6 +149,7 @@ static void uart_busy_clear(const struct device *dev)
148149
}
149150
}
150151
#endif
152+
#endif
151153

152154
#ifdef CONFIG_PM_DEVICE
153155

0 commit comments

Comments
 (0)