Fix S32K1XX PM which was broken by #7869

This commit is contained in:
Peter van der Perk 2022-12-16 12:03:00 +01:00 committed by Xiang Xiao
parent 06842c824a
commit 19ca5ecbb0

View File

@ -2011,13 +2011,13 @@ static void up_pm_notify(struct pm_callback_s *cb, int domain,
peripheral_clock_source_t clock_source;
#ifdef CONFIG_PM_SERIAL0
struct s32k1xx_uart_s *priv0 = g_lpuart0priv.priv;
struct s32k1xx_uart_s *priv0 = g_lpuart0priv.dev.priv;
#endif
#ifdef CONFIG_PM_SERIAL1
struct s32k1xx_uart_s *priv1 = g_lpuart1priv.priv;
struct s32k1xx_uart_s *priv1 = g_lpuart1priv.dev.priv;
#endif
#ifdef CONFIG_PM_SERIAL2
struct s32k1xx_uart_s *priv2 = g_lpuart2priv.priv;
struct s32k1xx_uart_s *priv2 = g_lpuart2priv.dev.priv;
#endif
uint32_t ret_reg = 0;
@ -2254,15 +2254,15 @@ static int up_pm_prepare(struct pm_callback_s *cb, int domain,
#ifdef CONFIG_PM_SERIAL0
struct s32k1xx_uart_s *priv0 =
(struct s32k1xx_uart_s *)g_lpuart0priv.priv;
(struct s32k1xx_uart_s *)g_lpuart0priv.dev.priv;
#endif
#ifdef CONFIG_PM_SERIAL1
struct s32k1xx_uart_s *priv1 =
(struct s32k1xx_uart_s *)g_lpuart1priv.priv;
(struct s32k1xx_uart_s *)g_lpuart1priv.dev.priv;
#endif
#ifdef CONFIG_PM_SERIAL2
struct s32k1xx_uart_s *priv2 =
(struct s32k1xx_uart_s *)g_lpuart2priv.priv;
(struct s32k1xx_uart_s *)g_lpuart2priv.dev.priv;
#endif
uint32_t ret_reg = 0;