diff options
author | Johan Hovold <johan@kernel.org> | 2018-07-04 12:05:57 +0300 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-07-12 21:31:19 +0300 |
commit | 4425070a5cfe634bc8e5657ff819a7a0c2d39d33 (patch) | |
tree | cd6df9ecea083c1005f06df12ce940a39f7c7e76 /drivers/rtc/rtc-omap.c | |
parent | 551757eb052986ec81cebcc6301cc1c4f8dca938 (diff) | |
download | linux-4425070a5cfe634bc8e5657ff819a7a0c2d39d33.tar.xz |
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/rtc-omap.c')
-rw-r--r-- | drivers/rtc/rtc-omap.c | 1 |
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; } |