summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Konovalov <andrey.konovalov@linaro.org>2012-09-20 23:53:46 +0400
committerAndrey Konovalov <andrey.konovalov@linaro.org>2012-10-10 00:13:36 +0400
commitd7d07c5bc348a22b195cdeb50c3f8f192f0d46e7 (patch)
tree7904e484fdc8255a5331349c6d6c4bc4105944b3
parente3cd08e414ea796fa050329578417ca527ac323e (diff)
This fixes the following error (reveals if CONFIG_ARM_ARCH_TIMER=y): Building modules, stage 2. MODPOST 1106 modules ERROR: "read_current_timer" [drivers/video/udlfb.ko] undefined! ERROR: "read_current_timer" [drivers/gpu/drm/udl/udl.ko] undefined! ERROR: "read_current_timer" [crypto/tcrypt.ko] undefined! Signed-off-by: Andrey Konovalov <andrey.konovalov@linaro.org>
-rw-r--r--arch/arm/kernel/arch_timer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/kernel/arch_timer.c b/arch/arm/kernel/arch_timer.c
index cf258807160d..7f24d1fbb591 100644
--- a/arch/arm/kernel/arch_timer.c
+++ b/arch/arm/kernel/arch_timer.c
@@ -19,6 +19,7 @@
#include <linux/interrupt.h>
#include <linux/of_irq.h>
#include <linux/io.h>
+#include <linux/export.h>
#include <asm/cputype.h>
#include <asm/localtimer.h>
@@ -232,6 +233,7 @@ int read_current_timer(unsigned long *timer_val)
*timer_val = arch_counter_get_cntpct();
return 0;
}
+EXPORT_SYMBOL(read_current_timer);
static struct clocksource clocksource_counter = {
.name = "arch_sys_counter",