diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-02-11 10:46:46 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-02-17 21:28:39 +0100 |
commit | 5736610ab61622ca4ca09a5778a8b18fd3220b1b (patch) | |
tree | b100cdd7ebda810e3e8be1cff2ad6ee3ad7cb520 /drivers/rtc/rtc-meson.c | |
parent | d8fe6009aa3ecbeeab3a4ec1a8bce68959a885be (diff) |
rtc: meson: remove useless rtc_nvmem_unregister call
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>
Diffstat (limited to 'drivers/rtc/rtc-meson.c')
-rw-r--r-- | drivers/rtc/rtc-meson.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/rtc/rtc-meson.c b/drivers/rtc/rtc-meson.c index 6fc4b09e7ebd..e08b981dfc21 100644 --- a/drivers/rtc/rtc-meson.c +++ b/drivers/rtc/rtc-meson.c @@ -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; |