Commit 4425070a authored by Johan Hovold's avatar Johan Hovold Committed by Alexandre Belloni

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: default avatarJohan Hovold <johan@kernel.org>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 551757eb
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment