Skip to content

Commit 5dd3bd5

Browse files
cfriedtkartben
authored andcommitted
drivers: serial: pl011: only declare ambiq pm action when used
The conditions needed to declare `uart_ambiq_pm_action()` in `uart_pl011_ambiq.h` and the conditions needed to use it in `uart_pl011.c` differed, which would result in a warning promoted to error during weekly CI runs. Ensure that the conditions match to remove the warning / error. ```cpp if defined(CONFIG_SOC_SERIES_APOLLO3X) || \ defined(CONFIG_SOC_SERIES_APOLLO5X) ``` Signed-off-by: Chris Friedt <[email protected]>
1 parent 21da2d0 commit 5dd3bd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/serial/uart_pl011_ambiq.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static inline int clk_enable_ambiq_uart(const struct device *dev, uint32_t clk)
6262
return pl011_ambiq_clk_set(dev, clk);
6363
}
6464

65-
#if !defined(CONFIG_SOC_SERIES_APOLLO2X)
65+
#if defined(CONFIG_SOC_SERIES_APOLLO3X) || defined(CONFIG_SOC_SERIES_APOLLO5X)
6666
#ifdef CONFIG_PM_DEVICE
6767

6868
/* Register status record.

0 commit comments

Comments
 (0)