From 1aebfcdb99925134221d174364679fbc03d24326 Mon Sep 17 00:00:00 2001 From: Richard Wheatley Date: Fri, 23 Aug 2024 08:03:53 -0500 Subject: [PATCH] drivers: serial: UART PL011 Ambiq PM Fix apollo3 driver added PM to UART for only apollo3 but defined PM function for both causing an error in twister Signed-off-by: Richard Wheatley --- drivers/serial/uart_pl011_ambiq.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/serial/uart_pl011_ambiq.h b/drivers/serial/uart_pl011_ambiq.h index 5866ff730f5..181a020614a 100644 --- a/drivers/serial/uart_pl011_ambiq.h +++ b/drivers/serial/uart_pl011_ambiq.h @@ -186,6 +186,7 @@ static int uart_ambiq_pm_action(const struct device *dev, enum pm_device_action #else #define DEVPWRSTATUS_OFFSET 0x4 #define AMBIQ_UART_DEFINE(n) \ + PM_DEVICE_DT_INST_DEFINE(n, uart_ambiq_pm_action); \ static int pwr_on_ambiq_uart_##n(void) \ { \ uint32_t addr = DT_REG_ADDR(DT_INST_PHANDLE(n, ambiq_pwrcfg)) + \