aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/class.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2018-02-12 23:47:16 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-02-14 20:58:11 +0100
commit4cce9d3988ae33eb53742d9648ecc59046196e6f (patch)
treedc0bb10efbb3eb2e73a6a8939b71f69d6fbe2af4 /drivers/rtc/class.c
parentrtc: documentation: correct nvmem date and version (diff)
downloadlinux-dev-4cce9d3988ae33eb53742d9648ecc59046196e6f.tar.xz
linux-dev-4cce9d3988ae33eb53742d9648ecc59046196e6f.zip
rtc: nvmem: pass nvmem_config to rtc_nvmem_register()
To be able to remove nvmem_config from struct rtc_device, pass it as a parameter to rtc_nvmem_register. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/class.c')
-rw-r--r--drivers/rtc/class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/class.c b/drivers/rtc/class.c
index 722d683e0b0f..47c4aeed5106 100644
--- a/drivers/rtc/class.c
+++ b/drivers/rtc/class.c
@@ -453,7 +453,7 @@ int __rtc_register_device(struct module *owner, struct rtc_device *rtc)
rtc_proc_add_device(rtc);
- rtc_nvmem_register(rtc);
+ rtc_nvmem_register(rtc, rtc->nvmem_config);
rtc->registered = true;
dev_info(rtc->dev.parent, "registered as %s\n",