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 <richard.wheatley@ambiq.com>
This commit is contained in:
Richard Wheatley 2024-08-23 08:03:53 -05:00 committed by Anas Nashif
parent 095d1d75e2
commit 1aebfcdb99
1 changed files with 1 additions and 0 deletions

View File

@ -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)) + \