MLK-21076-1 rtc: imx-rpmsg: Fix build error when CONFIG_PM_SLEEP=n
authorAnson Huang <Anson.Huang@nxp.com>
Tue, 23 Jul 2019 01:37:14 +0000 (09:37 +0800)
committerAnson Huang <Anson.Huang@nxp.com>
Tue, 23 Jul 2019 07:53:13 +0000 (15:53 +0800)
drivers/rtc/rtc-imx-rpmsg.c:374:9:
error: 'IMX_RPMSG_RTC_PM_OPS' undeclared here (not in a function);
did you mean 'IMX8_RPMSG_RTC_PM_OPS'?

   .pm = IMX_RPMSG_RTC_PM_OPS,
         ^~~~~~~~~~~~~~~~~~~~
         IMX8_RPMSG_RTC_PM_OPS

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
(cherry picked from commit 86aba1097ae69ff75999bddc3c3b0ad6c0bc7e2e)

drivers/rtc/rtc-imx-rpmsg.c

index d381cb0..dc74891 100644 (file)
@@ -358,7 +358,7 @@ static const struct dev_pm_ops imx_rpmsg_rtc_pm_ops = {
 
 #else
 
-#define IMX8_RPMSG_RTC_PM_OPS  NULL
+#define IMX_RPMSG_RTC_PM_OPS   NULL
 
 #endif