aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-3.9
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2013-05-19 11:27:28 +0000
committerJonas Gorski <jogo@openwrt.org>2013-05-19 11:27:28 +0000
commit668604f91d5cac578830413d5a1c5c6d6ca17537 (patch)
tree94691bbce6079d4f9cf35316dc1b711ba2eb3cee /target/linux/generic/patches-3.9
parent2ff74a75b62f6b9481666fc9ef1c94e582c9972a (diff)
downloadupstream-668604f91d5cac578830413d5a1c5c6d6ca17537.tar.gz
upstream-668604f91d5cac578830413d5a1c5c6d6ca17537.tar.bz2
upstream-668604f91d5cac578830413d5a1c5c6d6ca17537.zip
kernel: don't remove of_tables
These are needed for OF setup of clocksource, clocks and irqchips. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 36657
Diffstat (limited to 'target/linux/generic/patches-3.9')
-rw-r--r--target/linux/generic/patches-3.9/220-gc_sections.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/target/linux/generic/patches-3.9/220-gc_sections.patch b/target/linux/generic/patches-3.9/220-gc_sections.patch
index 5b0cfa96b8..59bdac50b9 100644
--- a/target/linux/generic/patches-3.9/220-gc_sections.patch
+++ b/target/linux/generic/patches-3.9/220-gc_sections.patch
@@ -92,6 +92,39 @@
VMLINUX_SYMBOL(__stop_syscalls_metadata) = .;
#else
#define TRACE_SYSCALLS()
+@@ -152,8 +152,8 @@
+ #ifdef CONFIG_CLKSRC_OF
+ #define CLKSRC_OF_TABLES() . = ALIGN(8); \
+ VMLINUX_SYMBOL(__clksrc_of_table) = .; \
+- *(__clksrc_of_table) \
+- *(__clksrc_of_table_end)
++ KEEP(*(__clksrc_of_table)) \
++ KEEP(*(__clksrc_of_table_end))
+ #else
+ #define CLKSRC_OF_TABLES()
+ #endif
+@@ -162,8 +162,8 @@
+ #define IRQCHIP_OF_MATCH_TABLE() \
+ . = ALIGN(8); \
+ VMLINUX_SYMBOL(__irqchip_begin) = .; \
+- *(__irqchip_of_table) \
+- *(__irqchip_of_end)
++ KEEP(*(__irqchip_of_table)) \
++ KEEP(*(__irqchip_of_end))
+ #else
+ #define IRQCHIP_OF_MATCH_TABLE()
+ #endif
+@@ -171,8 +171,8 @@
+ #ifdef CONFIG_COMMON_CLK
+ #define CLK_OF_TABLES() . = ALIGN(8); \
+ VMLINUX_SYMBOL(__clk_of_table) = .; \
+- *(__clk_of_table) \
+- *(__clk_of_table_end)
++ KEEP(*(__clk_of_table)) \
++ KEEP(*(__clk_of_table_end))
+ #else
+ #define CLK_OF_TABLES()
+ #endif
@@ -180,7 +180,7 @@
#define KERNEL_DTB() \
STRUCT_ALIGN(); \