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>
This commit is contained in:
Johan Hovold 2018-07-04 11:05:57 +02:00 committed by Alexandre Belloni
parent 551757eb05
commit 4425070a5c
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}