aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/rtc/rtc-mt2712.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/rtc-mt2712.c')
-rw-r--r--drivers/rtc/rtc-mt2712.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-mt2712.c b/drivers/rtc/rtc-mt2712.c
index 62c20241426d..581b8731fb8a 100644
--- a/drivers/rtc/rtc-mt2712.c
+++ b/drivers/rtc/rtc-mt2712.c
@@ -409,7 +409,9 @@ static struct platform_driver mt2712_rtc_driver = {
.driver = {
.name = "mt2712-rtc",
.of_match_table = mt2712_rtc_of_match,
+#ifdef CONFIG_PM_SLEEP
.pm = &mt2712_pm_ops,
+#endif
},
.probe = mt2712_rtc_probe,
};