From 1cb8f7c369bf6bc31afa0bbc4e387feeaf79dfc6 Mon Sep 17 00:00:00 2001 From: Wealian Liao Date: Fri, 25 Jun 2021 10:11:42 +0800 Subject: [PATCH] driver: uart: npcx: Fix building of kernel.timer.tickless UART CR_SIN interrupt enable/disable are invoked when CONFIG_PM enable. This removes the guard for UART CR_SIN interrupt enable/disable to fix the build issue. Fixed #36520 Signed-off-by: Wealian Liao --- drivers/serial/uart_npcx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/serial/uart_npcx.c b/drivers/serial/uart_npcx.c index b65faac697b..60153432b22 100644 --- a/drivers/serial/uart_npcx.c +++ b/drivers/serial/uart_npcx.c @@ -548,7 +548,6 @@ NPCX_UART_IRQ_CONFIG_FUNC(inst) DT_INST_FOREACH_STATUS_OKAY(NPCX_UART_INIT) -#ifdef CONFIG_PM_DEVICE #define ENABLE_MIWU_CRIN_IRQ(inst) \ npcx_miwu_irq_get_and_clear_pending(&uart_npcx_cfg_##inst.uart_rx_wui);\ npcx_miwu_irq_enable(&uart_npcx_cfg_##inst.uart_rx_wui); @@ -565,4 +564,3 @@ void npcx_uart_disable_access_interrupt(void) { DT_INST_FOREACH_STATUS_OKAY(DISABLE_MIWU_CRIN_IRQ) } -#endif /* CONFIG_PM_DEVICE */