diff options
-rw-r--r-- | drivers/rtc/rtc-snvs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-snvs.c b/drivers/rtc/rtc-snvs.c index ede0750f9683..7f827fed16d7 100644 --- a/drivers/rtc/rtc-snvs.c +++ b/drivers/rtc/rtc-snvs.c @@ -338,12 +338,14 @@ static int snvs_rtc_probe(struct platform_device *pdev) dev_err(&pdev->dev, "failed to register rtc: %d\n", ret); goto err_rtc; } +#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 clk_disable(data->clk); |