]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
MIPS: prepare for user enabling of CONFIG_OF
authorRob Herring <robh@kernel.org>
Tue, 2 Jun 2015 22:46:42 +0000 (17:46 -0500)
committerRalf Baechle <ralf@linux-mips.org>
Sun, 21 Jun 2015 19:54:14 +0000 (21:54 +0200)
In preparation to allow users to enable DeviceTree without arch or
machine selecting it, we need to fix build errors on MIPS. When
CONFIG_OF is enabled, device_tree_init cannot be resolved. This is
trivially fixed by using CONFIG_USE_OF instead of CONFIG_OF for prom.h.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/prom.h
arch/mips/kernel/prom.c

index 8ebc2aa5f3e1331fd0c84f2ba54675a4128a06a2..0b4b668925f66d6105fa347d9932627e1acdf67a 100644 (file)
@@ -11,7 +11,7 @@
 #ifndef __ASM_PROM_H
 #define __ASM_PROM_H
 
-#ifdef CONFIG_OF
+#ifdef CONFIG_USE_OF
 #include <linux/bug.h>
 #include <linux/io.h>
 #include <linux/types.h>
index e303cb1ef2f41d5ecc27c8735b2f6e211143b4c8..b130033838ba0c391ef4f9f0c7aa19e5a50b6eb7 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/of_fdt.h>
 #include <linux/of_platform.h>
 
+#include <asm/bootinfo.h>
 #include <asm/page.h>
 #include <asm/prom.h>