summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-snvs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/rtc-snvs.c')
-rw-r--r--drivers/rtc/rtc-snvs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-snvs.c b/drivers/rtc/rtc-snvs.c
index 6c6b684e52e0..ff2935a32db0 100644
--- a/drivers/rtc/rtc-snvs.c
+++ b/drivers/rtc/rtc-snvs.c
@@ -303,12 +303,14 @@ static int snvs_rtc_probe(struct platform_device *pdev)
dev_err(&pdev->dev, "failed to register rtc: %d\n", ret);
return ret;
}
+#ifndef CONFIG_POWER_RESET_GPIO
/*
* if no specific power off function in board file, power off system by
* SNVS
*/
if (!pm_power_off)
pm_power_off = snvs_poweroff;
+#endif
return 0;
}