of: remove HAVE_ARCH_DEVTREE_FIXUPS
authorRob Herring <rob.herring@calxeda.com>
Sat, 7 Sep 2013 19:11:58 +0000 (14:11 -0500)
committerRob Herring <rob.herring@calxeda.com>
Thu, 10 Oct 2013 01:04:08 +0000 (20:04 -0500)
HAVE_ARCH_DEVTREE_FIXUPS appears to always be needed except for sparc,
but it is only used for /proc/device-teee and sparc does not enable
/proc/device-tree. So this option is redundant. Remove the option and
always enable it. This has the side effect of fixing /proc/device-tree
on arches such as arm64 which failed to define this option.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Vineet Gupta <vgupta@synopsys.com>
Acked-by: Grant Likely <grant.likely@linaro.org>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: Michal Simek <monstr@monstr.eu>
Cc: Jonas Bonn <jonas@southpole.se>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: x86@kernel.org
Cc: Chris Zankel <chris@zankel.net>
Cc: Max Filippov <jcmvbkbc@gmail.com>
arch/arc/include/asm/prom.h
arch/arm/include/asm/prom.h
arch/metag/include/asm/prom.h
arch/microblaze/include/asm/prom.h
arch/openrisc/include/asm/prom.h
arch/powerpc/include/asm/prom.h
arch/x86/include/asm/prom.h
arch/xtensa/include/asm/prom.h
fs/proc/proc_devtree.c

index 692d0d0789a7bcbfe5832f98fbc9e25f7d757de2..15555499e430c0927ae7bbf48361204c83759bb7 100644 (file)
@@ -9,6 +9,4 @@
 #ifndef _ASM_ARC_PROM_H_
 #define _ASM_ARC_PROM_H_
 
-#define HAVE_ARCH_DEVTREE_FIXUPS
-
 #endif
index 4a2985e21969ab283889935c20ad44a486ed1dcd..b681575ad3de9c969a60d538e620a65665e940f3 100644 (file)
@@ -11,8 +11,6 @@
 #ifndef __ASMARM_PROM_H
 #define __ASMARM_PROM_H
 
-#define HAVE_ARCH_DEVTREE_FIXUPS
-
 #ifdef CONFIG_OF
 
 extern const struct machine_desc *setup_machine_fdt(unsigned int dt_phys);
index e19022c5a0cbdc3194d155c5ccd3e83ef5c15629..d4be144a86136d5a67318e4b6a2394b101bb0ae5 100644 (file)
@@ -14,7 +14,6 @@
 #ifndef __ASM_METAG_PROM_H
 #define __ASM_METAG_PROM_H
 
-#define HAVE_ARCH_DEVTREE_FIXUPS
 
 extern void copy_fdt(void);
 
index 0ebd924902dfb23dfea7e3d1e006daf770e775cd..2f03ac8158511f49beab2074ef88c19c2838eadc 100644 (file)
@@ -16,8 +16,6 @@
 
 #include <linux/of.h>
 
-#define HAVE_ARCH_DEVTREE_FIXUPS
-
 /* Other Prototypes */
 enum early_consoles {
        UARTLITE = 1,
index 93c9980e1b6b61a93c81dc93a4c0902ee59a451c..bec477ba9f7d53c9134a738945ac96ee5df6266d 100644 (file)
@@ -17,6 +17,4 @@
 #ifndef _ASM_OPENRISC_PROM_H
 #define _ASM_OPENRISC_PROM_H
 
-#define HAVE_ARCH_DEVTREE_FIXUPS
-
 #endif /* _ASM_OPENRISC_PROM_H */
index 6707c16d8fc54694cee1aa49521e5e26069930ef..43fe0023d722c2c18e10e32d6edef43a55308950 100644 (file)
@@ -20,8 +20,6 @@
 #include <asm/irq.h>
 #include <linux/atomic.h>
 
-#define HAVE_ARCH_DEVTREE_FIXUPS
-
 /*
  * OF address retreival & translation
  */
index 8ef2ec70858f79ece6db0227dc5e9e0bfef41a74..fbeb06ed0eaa7b1729e396fd6e45cd81782fb468 100644 (file)
@@ -39,7 +39,5 @@ static inline void x86_dtb_init(void) { }
 
 extern char cmd_line[COMMAND_LINE_SIZE];
 
-#define HAVE_ARCH_DEVTREE_FIXUPS
-
 #endif /* __ASSEMBLY__ */
 #endif
index f3d7cd2c0de708d08b2cad8feb299c9d6a90d9d4..2a87a583b41bf2b8150f60f3489cfb677095cc06 100644 (file)
@@ -1,6 +1,4 @@
 #ifndef _XTENSA_ASM_PROM_H
 #define _XTENSA_ASM_PROM_H
 
-#define HAVE_ARCH_DEVTREE_FIXUPS
-
 #endif /* _XTENSA_ASM_PROM_H */
index 106a83570630d9048da7cd89546e4dd6c44009e2..70779b2fc2090b98b741d10f3f37c4a8c1379bf9 100644 (file)
 #include <linux/of.h>
 #include <linux/export.h>
 #include <linux/slab.h>
-#include <asm/prom.h>
 #include <asm/uaccess.h>
 #include "internal.h"
 
 static inline void set_node_proc_entry(struct device_node *np,
                                       struct proc_dir_entry *de)
 {
-#ifdef HAVE_ARCH_DEVTREE_FIXUPS
        np->pde = de;
-#endif
 }
 
 static struct proc_dir_entry *proc_device_tree;