aboutsummaryrefslogtreecommitdiff
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-09-20 23:53:46 +0400
commitdc4ac7e4bb2f6fab3affd37e3665acfe84148c03 (patch)
tree25493bdb501dc339c7314868dce8a02126a200d6
parent4045ef959be2fa13b21ac3cc3b28ffb6f126ec9f (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 16fd0fd122a..f2ffe8dd140 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",