aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel
diff options
context:
space:
mode:
authorRich Felker <dalias@libc.org>2016-06-01 18:21:45 -0400
committerRich Felker <dalias@libc.org>2016-07-30 23:33:32 -0400
commit03767daa1387f87619404bfe108ebb6aa5826e00 (patch)
tree96d098d95c77dea3eaa941cdd4eaecf931955e20 /arch/sh/kernel
parentb46ed37042fa21ce3e888310462902044df98321 (diff)
sh: fix build regression with CONFIG_OF && !CONFIG_OF_FLATTREE
Such a configuration could only be selected by manually selecting CONFIG_OF; SH_DEVICE_TREE selects both. The affected code is using the flat DTB at boot time and thus rightfully should depend on OF_FLATTREE, not just OF. Signed-off-by: Rich Felker <dalias@libc.org>
Diffstat (limited to 'arch/sh/kernel')
-rw-r--r--arch/sh/kernel/head_32.S6
-rw-r--r--arch/sh/kernel/setup.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/sh/kernel/head_32.S b/arch/sh/kernel/head_32.S
index 974bc152cc84..4e352c3f79e6 100644
--- a/arch/sh/kernel/head_32.S
+++ b/arch/sh/kernel/head_32.S
@@ -67,7 +67,7 @@ ENTRY(_stext)
67 ldc r0, r6_bank 67 ldc r0, r6_bank
68#endif 68#endif
69 69
70#ifdef CONFIG_OF 70#ifdef CONFIG_OF_FLATTREE
71 mov r4, r12 ! Store device tree blob pointer in r12 71 mov r4, r12 ! Store device tree blob pointer in r12
72#endif 72#endif
73 73
@@ -318,7 +318,7 @@ ENTRY(_stext)
31810: 31810:
319#endif 319#endif
320 320
321#ifdef CONFIG_OF 321#ifdef CONFIG_OF_FLATTREE
322 mov.l 8f, r0 ! Make flat device tree available early. 322 mov.l 8f, r0 ! Make flat device tree available early.
323 jsr @r0 323 jsr @r0
324 mov r12, r4 324 mov r12, r4
@@ -349,7 +349,7 @@ ENTRY(stack_start)
3495: .long start_kernel 3495: .long start_kernel
3506: .long cpu_init 3506: .long cpu_init
3517: .long init_thread_union 3517: .long init_thread_union
352#if defined(CONFIG_OF) 352#if defined(CONFIG_OF_FLATTREE)
3538: .long sh_fdt_init 3538: .long sh_fdt_init
354#endif 354#endif
355 355
diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c
index 5b9eb70311e3..e7b49d81053e 100644
--- a/arch/sh/kernel/setup.c
+++ b/arch/sh/kernel/setup.c
@@ -242,7 +242,7 @@ void __init __weak plat_early_device_setup(void)
242{ 242{
243} 243}
244 244
245#ifdef CONFIG_OF 245#ifdef CONFIG_OF_FLATTREE
246void __ref sh_fdt_init(phys_addr_t dt_phys) 246void __ref sh_fdt_init(phys_addr_t dt_phys)
247{ 247{
248 static int done = 0; 248 static int done = 0;