From: Alexandre Belloni Date: Mon, 12 Feb 2018 22:47:34 +0000 (+0100) Subject: rtc: remove nvmem_config X-Git-Tag: v4.19~1240^2~103 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0391df74a608e4e65c29ddf80e704edfa8f8ef25;p=platform%2Fkernel%2Flinux-rpi.git 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: Alexandre Belloni --- diff --git a/drivers/rtc/class.c b/drivers/rtc/class.c index 0cab397..5a5ab4f 100644 --- a/drivers/rtc/class.c +++ b/drivers/rtc/class.c @@ -454,8 +454,6 @@ int __rtc_register_device(struct module *owner, struct rtc_device *rtc) rtc_proc_add_device(rtc); - rtc_nvmem_register(rtc, rtc->nvmem_config); - rtc->registered = true; dev_info(rtc->dev.parent, "registered as %s\n", dev_name(&rtc->dev)); diff --git a/include/linux/rtc.h b/include/linux/rtc.h index fbc92ff..37b041f 100644 --- a/include/linux/rtc.h +++ b/include/linux/rtc.h @@ -145,7 +145,6 @@ struct rtc_device { bool registered; - struct nvmem_config *nvmem_config; struct nvmem_device *nvmem; /* Old ABI support */ bool nvram_old_abi;