From: Rob Herring Date: Mon, 1 Jun 2015 13:17:31 +0000 (-0500) Subject: MIPS: prepare for user enabling of CONFIG_OF X-Git-Tag: v4.2-rc1~44^2~2^2~8 X-Git-Url: http://git.cascardo.eti.br/?a=commitdiff_plain;h=42ef89466b0bdfe5b08f8f603e3c924a8d7d9332;p=cascardo%2Flinux.git 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 Acked-by: Ralf Baechle Acked-by: Grant Likely Cc: linux-mips@linux-mips.org --- 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 @@ #ifndef __ASM_PROM_H #define __ASM_PROM_H -#ifdef CONFIG_OF +#ifdef CONFIG_USE_OF #include #include #include 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 @@ #include #include +#include #include #include