]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
rtc: omap: add missing register lock in error path
authorJohan Hovold <johan@kernel.org>
Wed, 4 Jul 2018 09:05:57 +0000 (11:05 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 12 Jul 2018 18:31:19 +0000 (20:31 +0200)
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>
drivers/rtc/rtc-omap.c

index 6a7b804c3074c710c3338703a8c82c9b45d7bcd8..7f9ee559dd996a339b42625c7c470580ec7a8eba 100644 (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;
        }