diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2015-07-23 14:44:24 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2015-12-26 14:37:35 +0100 |
commit | 073e547496316e486b112412059eb4321de07eb6 (patch) | |
tree | f17e6afee8ce73c379b0733ad6c353c7d855ffcb /drivers | |
parent | 8d07763eb1d6a2a11e9b237ac94b8de43183b02e (diff) |
rtc-snvs.c: conditionally set pm_power_off
There is a hack to use the global pm_power_off callback to switch of power
with the i.MX 6 PMIC_ON_REQ signal.
If one uses another power off driver the callback was already taken by the
rtc-snvs driver.
Diffstat (limited to 'drivers')
-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); |