summaryrefslogtreecommitdiff
path: root/drivers/rtc
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2018-07-04 11:05:57 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-07-12 20:31:19 +0200
commit4425070a5cfe634bc8e5657ff819a7a0c2d39d33 (patch)
treecd6df9ecea083c1005f06df12ce940a39f7c7e76 /drivers/rtc
parent551757eb052986ec81cebcc6301cc1c4f8dca938 (diff)
rtc: omap: add missing register lock in error path
For completeness re-lock the registers also in the power-off error path. Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-omap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-omap.c b/drivers/rtc/rtc-omap.c
index 6a7b804c3074..7f9ee559dd99 100644
--- a/drivers/rtc/rtc-omap.c
+++ b/drivers/rtc/rtc-omap.c
@@ -449,6 +449,7 @@ static void omap_rtc_power_off(void)
if (tm2bcd(&tm) < 0) {
dev_err(&rtc->rtc->dev, "power off failed\n");
+ rtc->type->lock(rtc);
return;
}