diff options
author | Peter Robinson <pbrobinson@gmail.com> | 2012-08-26 09:40:58 +0100 |
---|---|---|
committer | Peter Robinson <pbrobinson@gmail.com> | 2012-08-26 09:44:25 +0100 |
commit | f05cdeebfe0ab8efe43b7157af04ee50c46d6074 (patch) | |
tree | d2ae12e18d3566c915f27bd7968184ed5185551c /arm-read_current_timer.patch | |
parent | b49693cc59e0c9a7d9530138caa0e48ace87694c (diff) | |
download | kernel-f05cdeebfe0ab8efe43b7157af04ee50c46d6074.tar.gz kernel-f05cdeebfe0ab8efe43b7157af04ee50c46d6074.tar.xz kernel-f05cdeebfe0ab8efe43b7157af04ee50c46d6074.zip |
Add patch to fix build on ARM, Enable USB ULPI driver to fix some USB ports
Diffstat (limited to 'arm-read_current_timer.patch')
-rw-r--r-- | arm-read_current_timer.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/arm-read_current_timer.patch b/arm-read_current_timer.patch new file mode 100644 index 000000000..dc6a4447d --- /dev/null +++ b/arm-read_current_timer.patch @@ -0,0 +1,39 @@ +read_current_timer is used in the get_cycles() function when +ARM_ARCH_TIMER is set, and that function can be inlined into +driver modules, so we should export the function to avoid +errors like + +ERROR: "read_current_timer" [drivers/video/udlfb.ko] undefined! +ERROR: "read_current_timer" [crypto/tcrypt.ko] undefined! + +Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx> +Cc: Shinya Kuribayashi <shinya.kuribayashi.px@xxxxxxxxxxx> +Cc: Stephen Boyd <sboyd@xxxxxxxxxxxxxx> +Cc: Will Deacon <will.deacon@xxxxxxx> +Cc: Russell King <rmk+kernel@xxxxxxxxxxxxxxxx> +--- + arch/arm/kernel/arch_timer.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/arch/arm/kernel/arch_timer.c b/arch/arm/kernel/arch_timer.c +index cf25880..6327d1f 100644 +--- a/arch/arm/kernel/arch_timer.c ++++ b/arch/arm/kernel/arch_timer.c +@@ -14,6 +14,7 @@ + #include <linux/device.h> + #include <linux/smp.h> + #include <linux/cpu.h> ++#include <linux/export.h> + #include <linux/jiffies.h> + #include <linux/clockchips.h> + #include <linux/interrupt.h> +@@ -232,6 +233,7 @@ int read_current_timer(unsigned long *timer_val) + *timer_val = arch_counter_get_cntpct(); + return 0; + } ++EXPORT_SYMBOL_GPL(read_current_timer); + + static struct clocksource clocksource_counter = { + .name = "arch_sys_counter", +-- +1.7.10 |