aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/nvmem.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2018-02-12 23:47:19 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-03-01 10:49:15 +0100
commitfd5cd21d995e67f87b3eb4adf938be85fe83ef4b (patch)
tree4b79b8f29e8ad0c59100019a747681fa508964d2 /drivers/rtc/nvmem.c
parentac75779b72fd52741d7446ad27cf6d58c006c643 (diff)
downloadlinux-fd5cd21d995e67f87b3eb4adf938be85fe83ef4b.tar.gz
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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/rtc/nvmem.c b/drivers/rtc/nvmem.c
index eb8c622cfcf49..17ec4c8d0fad7 100644
--- a/drivers/rtc/nvmem.c
+++ b/drivers/rtc/nvmem.c
@@ -14,8 +14,6 @@
#include <linux/rtc.h>
#include <linux/sysfs.h>
-#include "rtc-core.h"
-
/*
* Deprecated ABI compatibility, this should be removed at some point
*/
@@ -105,6 +103,7 @@ int rtc_nvmem_register(struct rtc_device *rtc,
return 0;
}
+EXPORT_SYMBOL_GPL(rtc_nvmem_register);
void rtc_nvmem_unregister(struct rtc_device *rtc)
{