diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-02-12 17:47:19 -0500 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-03-01 04:49:15 -0500 |
commit | fd5cd21d995e67f87b3eb4adf938be85fe83ef4b (patch) | |
tree | 4b79b8f29e8ad0c59100019a747681fa508964d2 /drivers/rtc/nvmem.c | |
parent | ac75779b72fd52741d7446ad27cf6d58c006c643 (diff) |
rtc: export rtc_nvmem_register() to drivers
Export rtc_nvmem_register() so it can be called from drivers instead of
only the core.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/nvmem.c')
-rw-r--r-- | drivers/rtc/nvmem.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/rtc/nvmem.c b/drivers/rtc/nvmem.c index eb8c622cfcf4..17ec4c8d0fad 100644 --- a/drivers/rtc/nvmem.c +++ b/drivers/rtc/nvmem.c | |||
@@ -14,8 +14,6 @@ | |||
14 | #include <linux/rtc.h> | 14 | #include <linux/rtc.h> |
15 | #include <linux/sysfs.h> | 15 | #include <linux/sysfs.h> |
16 | 16 | ||
17 | #include "rtc-core.h" | ||
18 | |||
19 | /* | 17 | /* |
20 | * Deprecated ABI compatibility, this should be removed at some point | 18 | * Deprecated ABI compatibility, this should be removed at some point |
21 | */ | 19 | */ |
@@ -105,6 +103,7 @@ int rtc_nvmem_register(struct rtc_device *rtc, | |||
105 | 103 | ||
106 | return 0; | 104 | return 0; |
107 | } | 105 | } |
106 | EXPORT_SYMBOL_GPL(rtc_nvmem_register); | ||
108 | 107 | ||
109 | void rtc_nvmem_unregister(struct rtc_device *rtc) | 108 | void rtc_nvmem_unregister(struct rtc_device *rtc) |
110 | { | 109 | { |