rtc: meson: remove useless rtc_nvmem_unregister call
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 11 Feb 2019 09:46:46 +0000 (10:46 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 17 Feb 2019 20:28:39 +0000 (21:28 +0100)
rtc_nvmem_unregister() is called on rtc_device release so it is not
necessary to call it from the driver.

Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-meson.c

index 6fc4b09..e08b981 100644 (file)
@@ -373,13 +373,10 @@ static int meson_rtc_probe(struct platform_device *pdev)
 
        ret = rtc_register_device(rtc->rtc);
        if (ret)
-               goto out_unregister_nvmem;
+               goto out_disable_vdd;
 
        return 0;
 
-out_unregister_nvmem:
-       rtc_nvmem_unregister(rtc->rtc);
-
 out_disable_vdd:
        regulator_disable(rtc->vdd);
        return ret;