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:
parent
b921db6608
commit
3555c26053
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue