Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −4
Original line number Original line Diff line number Diff line
@@ -373,13 +373,10 @@ static int meson_rtc_probe(struct platform_device *pdev)


	ret = rtc_register_device(rtc->rtc);
	ret = rtc_register_device(rtc->rtc);
	if (ret)
	if (ret)
		goto out_unregister_nvmem;
		goto out_disable_vdd;


	return 0;
	return 0;


out_unregister_nvmem:
	rtc_nvmem_unregister(rtc->rtc);

out_disable_vdd:
out_disable_vdd:
	regulator_disable(rtc->vdd);
	regulator_disable(rtc->vdd);
	return ret;
	return ret;