Commit 5736610a authored by Alexandre Belloni's avatar Alexandre Belloni

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: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent d8fe6009
......@@ -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;
......
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