diff options
author | Rob Herring <robh@kernel.org> | 2015-06-01 09:17:31 -0400 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2015-06-04 20:37:00 -0400 |
commit | 42ef89466b0bdfe5b08f8f603e3c924a8d7d9332 (patch) | |
tree | 5d259bee4c6fd309e5fa38f19fec0e83e4e63cdf /arch/mips | |
parent | e7a9a5bbaa78e92e6b76bdb51d4c4f6da35c0812 (diff) |
MIPS: prepare for user enabling of CONFIG_OF
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>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Acked-by: Grant Likely <grant.likely@lianro.org>
Cc: linux-mips@linux-mips.org
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/include/asm/prom.h | 2 | ||||
-rw-r--r-- | arch/mips/kernel/prom.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/include/asm/prom.h b/arch/mips/include/asm/prom.h index 8ebc2aa5f3e1..0b4b668925f6 100644 --- a/arch/mips/include/asm/prom.h +++ b/arch/mips/include/asm/prom.h | |||
@@ -11,7 +11,7 @@ | |||
11 | #ifndef __ASM_PROM_H | 11 | #ifndef __ASM_PROM_H |
12 | #define __ASM_PROM_H | 12 | #define __ASM_PROM_H |
13 | 13 | ||
14 | #ifdef CONFIG_OF | 14 | #ifdef CONFIG_USE_OF |
15 | #include <linux/bug.h> | 15 | #include <linux/bug.h> |
16 | #include <linux/io.h> | 16 | #include <linux/io.h> |
17 | #include <linux/types.h> | 17 | #include <linux/types.h> |
diff --git a/arch/mips/kernel/prom.c b/arch/mips/kernel/prom.c index e303cb1ef2f4..b130033838ba 100644 --- a/arch/mips/kernel/prom.c +++ b/arch/mips/kernel/prom.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/of_fdt.h> | 18 | #include <linux/of_fdt.h> |
19 | #include <linux/of_platform.h> | 19 | #include <linux/of_platform.h> |
20 | 20 | ||
21 | #include <asm/bootinfo.h> | ||
21 | #include <asm/page.h> | 22 | #include <asm/page.h> |
22 | #include <asm/prom.h> | 23 | #include <asm/prom.h> |
23 | 24 | ||