aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2014-04-03 14:38:32 -0400
committerRob Herring <robh@kernel.org>2014-04-30 01:59:13 -0400
commitccf3356e6b3d2802ea452c0091314605a9e7b7a0 (patch)
tree37e25858c98ee5271aba9740cba04651db5d24c5
parent0cdde839265d5f258b36b871b083324f62c1fbb9 (diff)
of/fdt: consolidate built-in dtb section variables
Unify the various architectures __dtb_start and __dtb_end definitions moving them into of_fdt.h. Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Vineet Gupta <vgupta@synopsys.com> Acked-by: James Hogan <james.hogan@imgtec.com> Tested-by: Michal Simek <michal.simek@xilinx.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Jonas Bonn <jonas@southpole.se> Cc: Chris Zankel <chris@zankel.net> Cc: Max Filippov <jcmvbkbc@gmail.com> Cc: linux-metag@vger.kernel.org Cc: linux-mips@linux-mips.org Cc: linux@lists.openrisc.net Cc: linux-xtensa@linux-xtensa.org Tested-by: Grant Likely <grant.likely@linaro.org> Tested-by: Stephen Chivers <schivers@csc.com>
-rw-r--r--arch/arc/include/asm/sections.h1
-rw-r--r--arch/metag/kernel/setup.c4
-rw-r--r--arch/mips/include/asm/mips-boards/generic.h2
-rw-r--r--arch/mips/lantiq/prom.h2
-rw-r--r--arch/mips/netlogic/xlp/dt.c2
-rw-r--r--arch/mips/ralink/of.c2
-rw-r--r--arch/openrisc/kernel/vmlinux.h2
-rw-r--r--arch/xtensa/kernel/setup.c1
-rw-r--r--include/linux/of_fdt.h3
9 files changed, 4 insertions, 15 deletions
diff --git a/arch/arc/include/asm/sections.h b/arch/arc/include/asm/sections.h
index 764f1e3ba752..09db952e14bd 100644
--- a/arch/arc/include/asm/sections.h
+++ b/arch/arc/include/asm/sections.h
@@ -12,6 +12,5 @@
12#include <asm-generic/sections.h> 12#include <asm-generic/sections.h>
13 13
14extern char __arc_dccm_base[]; 14extern char __arc_dccm_base[];
15extern char __dtb_start[];
16 15
17#endif 16#endif
diff --git a/arch/metag/kernel/setup.c b/arch/metag/kernel/setup.c
index 129c7cdda1ce..31cf53d0eba2 100644
--- a/arch/metag/kernel/setup.c
+++ b/arch/metag/kernel/setup.c
@@ -105,10 +105,6 @@
105 105
106extern char _heap_start[]; 106extern char _heap_start[];
107 107
108#ifdef CONFIG_METAG_BUILTIN_DTB
109extern u32 __dtb_start[];
110#endif
111
112#ifdef CONFIG_DA_CONSOLE 108#ifdef CONFIG_DA_CONSOLE
113/* Our early channel based console driver */ 109/* Our early channel based console driver */
114extern struct console dash_console; 110extern struct console dash_console;
diff --git a/arch/mips/include/asm/mips-boards/generic.h b/arch/mips/include/asm/mips-boards/generic.h
index b969491aa98d..c904c24550f6 100644
--- a/arch/mips/include/asm/mips-boards/generic.h
+++ b/arch/mips/include/asm/mips-boards/generic.h
@@ -67,8 +67,6 @@
67 67
68extern int mips_revision_sconid; 68extern int mips_revision_sconid;
69 69
70extern char __dtb_start[];
71
72#ifdef CONFIG_PCI 70#ifdef CONFIG_PCI
73extern void mips_pcibios_init(void); 71extern void mips_pcibios_init(void);
74#else 72#else
diff --git a/arch/mips/lantiq/prom.h b/arch/mips/lantiq/prom.h
index 69a4c582338d..bfd2d58c1d69 100644
--- a/arch/mips/lantiq/prom.h
+++ b/arch/mips/lantiq/prom.h
@@ -26,6 +26,4 @@ struct ltq_soc_info {
26extern void ltq_soc_detect(struct ltq_soc_info *i); 26extern void ltq_soc_detect(struct ltq_soc_info *i);
27extern void ltq_soc_init(void); 27extern void ltq_soc_init(void);
28 28
29extern char __dtb_start[];
30
31#endif 29#endif
diff --git a/arch/mips/netlogic/xlp/dt.c b/arch/mips/netlogic/xlp/dt.c
index 7f9615a712fb..bdde33147bce 100644
--- a/arch/mips/netlogic/xlp/dt.c
+++ b/arch/mips/netlogic/xlp/dt.c
@@ -42,7 +42,7 @@
42#include <asm/prom.h> 42#include <asm/prom.h>
43 43
44extern u32 __dtb_xlp_evp_begin[], __dtb_xlp_svp_begin[], 44extern u32 __dtb_xlp_evp_begin[], __dtb_xlp_svp_begin[],
45 __dtb_xlp_fvp_begin[], __dtb_xlp_gvp_begin[], __dtb_start[]; 45 __dtb_xlp_fvp_begin[], __dtb_xlp_gvp_begin[];
46static void *xlp_fdt_blob; 46static void *xlp_fdt_blob;
47 47
48void __init *xlp_dt_init(void *fdtp) 48void __init *xlp_dt_init(void *fdtp)
diff --git a/arch/mips/ralink/of.c b/arch/mips/ralink/of.c
index 91d7060d5aea..251395210e23 100644
--- a/arch/mips/ralink/of.c
+++ b/arch/mips/ralink/of.c
@@ -28,8 +28,6 @@
28__iomem void *rt_sysc_membase; 28__iomem void *rt_sysc_membase;
29__iomem void *rt_memc_membase; 29__iomem void *rt_memc_membase;
30 30
31extern char __dtb_start[];
32
33__iomem void *plat_of_remap_node(const char *node) 31__iomem void *plat_of_remap_node(const char *node)
34{ 32{
35 struct resource res; 33 struct resource res;
diff --git a/arch/openrisc/kernel/vmlinux.h b/arch/openrisc/kernel/vmlinux.h
index 70b9ce41835c..bbcdf21b0b35 100644
--- a/arch/openrisc/kernel/vmlinux.h
+++ b/arch/openrisc/kernel/vmlinux.h
@@ -5,6 +5,4 @@
5extern char __initrd_start, __initrd_end; 5extern char __initrd_start, __initrd_end;
6#endif 6#endif
7 7
8extern u32 __dtb_start[];
9
10#endif 8#endif
diff --git a/arch/xtensa/kernel/setup.c b/arch/xtensa/kernel/setup.c
index 84fe931bb60e..89986e55d594 100644
--- a/arch/xtensa/kernel/setup.c
+++ b/arch/xtensa/kernel/setup.c
@@ -73,7 +73,6 @@ extern int initrd_below_start_ok;
73#endif 73#endif
74 74
75#ifdef CONFIG_OF 75#ifdef CONFIG_OF
76extern u32 __dtb_start[];
77void *dtb_start = __dtb_start; 76void *dtb_start = __dtb_start;
78#endif 77#endif
79 78
diff --git a/include/linux/of_fdt.h b/include/linux/of_fdt.h
index ddd7219af8ac..d4d0efe534b9 100644
--- a/include/linux/of_fdt.h
+++ b/include/linux/of_fdt.h
@@ -80,6 +80,9 @@ extern int __initdata dt_root_addr_cells;
80extern int __initdata dt_root_size_cells; 80extern int __initdata dt_root_size_cells;
81extern struct boot_param_header *initial_boot_params; 81extern struct boot_param_header *initial_boot_params;
82 82
83extern char __dtb_start[];
84extern char __dtb_end[];
85
83/* For scanning the flat device-tree at boot time */ 86/* For scanning the flat device-tree at boot time */
84extern char *find_flat_dt_string(u32 offset); 87extern char *find_flat_dt_string(u32 offset);
85extern int of_scan_flat_dt(int (*it)(unsigned long node, const char *uname, 88extern int of_scan_flat_dt(int (*it)(unsigned long node, const char *uname,