From: Anson Huang Date: Tue, 23 Jul 2019 06:22:02 +0000 (+0800) Subject: MLK-21076-8 rtc: imx-sc: Fix build error when CONFIG_PM_SLEEP=n X-Git-Tag: rel_imx_4.19.35_1.1.0~215 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=9e532e6d6f74f742e4316dbacf51dd409075484c;p=linux.git MLK-21076-8 rtc: imx-sc: Fix build error when CONFIG_PM_SLEEP=n Fix below build error when CONFIG_PM_SLEEP=n: drivers/rtc/rtc-imx-sc.c:210:9: error: ‘IMX_SC_RTC_PM_OPS’ undeclared here (not in a function) .pm = IMX_SC_RTC_PM_OPS, ^ scripts/Makefile.build:326: recipe for target 'drivers/rtc/rtc-imx-sc.o' failed make[2]: *** [drivers/rtc/rtc-imx-sc.o] Error 1 make[2]: *** Waiting for unfinished jobs.... Signed-off-by: Anson Huang Reviewed-by: Jacky Bai (cherry picked from commit 0550943f8c145072580bd103ff3fdd74eb5cb807) --- diff --git a/drivers/rtc/rtc-imx-sc.c b/drivers/rtc/rtc-imx-sc.c index 909d7c2a7005..76657836ff4d 100644 --- a/drivers/rtc/rtc-imx-sc.c +++ b/drivers/rtc/rtc-imx-sc.c @@ -194,7 +194,7 @@ static const struct dev_pm_ops imx_sc_rtc_pm_ops = { #else -#define IMX8_SC_RTC_PM_OPS NULL +#define IMX_SC_RTC_PM_OPS NULL #endif