lkml.org 
[lkml]   [2019]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] rtc: meson: remove useless rtc_nvmem_unregister call
Date
rtc_nvmem_unregister() is called on rtc_device release so it is not
necessary to call it from the driver.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
drivers/rtc/rtc-meson.c | 5 +----
1 file changed, 1 insertion(+), 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;
--
2.20.1
\
 
 \ /
  Last update: 2019-02-11 11:33    [W:0.036 / U:2.560 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site