summaryrefslogtreecommitdiff
path: root/include/linux/rtc.h
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2018-11-10 23:29:03 +0300
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-11-22 20:10:07 +0300
commit41c9e132c5cc3e5f28cf44032ff82f7614a42989 (patch)
treecf3e3e8684653cbdbf78b257f4fd75115ed82bdb /include/linux/rtc.h
parent461e557b97277b693cd8008c32a9d01c7f8f453b (diff)
downloadlinux-41c9e132c5cc3e5f28cf44032ff82f7614a42989.tar.xz
rtc: nvmem: remove nvmem from struct rtc_device
Using devm_nvmem_register allows to avoid tracking the nvmem pointer in the rtc_device structure. This ultimately allows to register multiple nvmem devices from an RTC driver. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'include/linux/rtc.h')
-rw-r--r--include/linux/rtc.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/rtc.h b/include/linux/rtc.h
index 311375dbb673..58147b057acd 100644
--- a/include/linux/rtc.h
+++ b/include/linux/rtc.h
@@ -138,7 +138,6 @@ struct rtc_device {
bool registered;
- struct nvmem_device *nvmem;
/* Old ABI support */
bool nvram_old_abi;
struct bin_attribute *nvram;