Commit 0391df74 authored by Alexandre Belloni's avatar Alexandre Belloni

rtc: remove nvmem_config

Because nvmem_config is only used and copied at nvmem registration, remove
it from struct rtc_device.

All the rtc drivers using nvmem are now calling rtc_nvmem_register
directly.
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent ce1ae8eb
...@@ -454,8 +454,6 @@ int __rtc_register_device(struct module *owner, struct rtc_device *rtc) ...@@ -454,8 +454,6 @@ int __rtc_register_device(struct module *owner, struct rtc_device *rtc)
rtc_proc_add_device(rtc); rtc_proc_add_device(rtc);
rtc_nvmem_register(rtc, rtc->nvmem_config);
rtc->registered = true; rtc->registered = true;
dev_info(rtc->dev.parent, "registered as %s\n", dev_info(rtc->dev.parent, "registered as %s\n",
dev_name(&rtc->dev)); dev_name(&rtc->dev));
......
...@@ -145,7 +145,6 @@ struct rtc_device { ...@@ -145,7 +145,6 @@ struct rtc_device {
bool registered; bool registered;
struct nvmem_config *nvmem_config;
struct nvmem_device *nvmem; struct nvmem_device *nvmem;
/* Old ABI support */ /* Old ABI support */
bool nvram_old_abi; bool nvram_old_abi;
......
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