aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/rtc
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2020-03-17 15:34:21 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2020-03-17 15:34:47 +0100
commit30a790653d8ac46d3116abe99ba745a7b0c27b8b (patch)
tree64897eec95055cace1fc7317c4bac5cb21f0d517 /drivers/rtc
parentrtc: 88pm860x: remove platform data support (diff)
downloadwireguard-linux-30a790653d8ac46d3116abe99ba745a7b0c27b8b.tar.xz
wireguard-linux-30a790653d8ac46d3116abe99ba745a7b0c27b8b.zip
rtc: mt2712: fix build without PM_SLEEP
Fix this build error when PM_SLEEP is not selected: drivers/rtc/rtc-mt2712.c:412:10: error: ‘mt2712_pm_ops’ undeclared here (not in a function); did you mean ‘mt2712_rtc_ops’? 412 | .pm = &mt2712_pm_ops, | ^~~~~~~~~~~~~ Link: https://lore.kernel.org/r/20200317143421.9551-1-alexandre.belloni@bootlin.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc')
-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,
};