diff options
author | Rob Herring <rob.herring@calxeda.com> | 2013-09-07 15:11:58 -0400 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2013-10-09 21:04:08 -0400 |
commit | 32df8dca503f82c816f8be85a8d0a394a8b88c2c (patch) | |
tree | ef153aaa47f7d1864ff2a367c06200ac65e0518d | |
parent | 0c3f061c195ceb891067b6de9e4ecc347c4dea31 (diff) |
of: remove HAVE_ARCH_DEVTREE_FIXUPS
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>
-rw-r--r-- | arch/arc/include/asm/prom.h | 2 | ||||
-rw-r--r-- | arch/arm/include/asm/prom.h | 2 | ||||
-rw-r--r-- | arch/metag/include/asm/prom.h | 1 | ||||
-rw-r--r-- | arch/microblaze/include/asm/prom.h | 2 | ||||
-rw-r--r-- | arch/openrisc/include/asm/prom.h | 2 | ||||
-rw-r--r-- | arch/powerpc/include/asm/prom.h | 2 | ||||
-rw-r--r-- | arch/x86/include/asm/prom.h | 2 | ||||
-rw-r--r-- | arch/xtensa/include/asm/prom.h | 2 | ||||
-rw-r--r-- | fs/proc/proc_devtree.c | 3 |
9 files changed, 0 insertions, 18 deletions
diff --git a/arch/arc/include/asm/prom.h b/arch/arc/include/asm/prom.h index 692d0d0789a7..15555499e430 100644 --- a/arch/arc/include/asm/prom.h +++ b/arch/arc/include/asm/prom.h | |||
@@ -9,6 +9,4 @@ | |||
9 | #ifndef _ASM_ARC_PROM_H_ | 9 | #ifndef _ASM_ARC_PROM_H_ |
10 | #define _ASM_ARC_PROM_H_ | 10 | #define _ASM_ARC_PROM_H_ |
11 | 11 | ||
12 | #define HAVE_ARCH_DEVTREE_FIXUPS | ||
13 | |||
14 | #endif | 12 | #endif |
diff --git a/arch/arm/include/asm/prom.h b/arch/arm/include/asm/prom.h index 4a2985e21969..b681575ad3de 100644 --- a/arch/arm/include/asm/prom.h +++ b/arch/arm/include/asm/prom.h | |||
@@ -11,8 +11,6 @@ | |||
11 | #ifndef __ASMARM_PROM_H | 11 | #ifndef __ASMARM_PROM_H |
12 | #define __ASMARM_PROM_H | 12 | #define __ASMARM_PROM_H |
13 | 13 | ||
14 | #define HAVE_ARCH_DEVTREE_FIXUPS | ||
15 | |||
16 | #ifdef CONFIG_OF | 14 | #ifdef CONFIG_OF |
17 | 15 | ||
18 | extern const struct machine_desc *setup_machine_fdt(unsigned int dt_phys); | 16 | extern const struct machine_desc *setup_machine_fdt(unsigned int dt_phys); |
diff --git a/arch/metag/include/asm/prom.h b/arch/metag/include/asm/prom.h index e19022c5a0cb..d4be144a8613 100644 --- a/arch/metag/include/asm/prom.h +++ b/arch/metag/include/asm/prom.h | |||
@@ -14,7 +14,6 @@ | |||
14 | #ifndef __ASM_METAG_PROM_H | 14 | #ifndef __ASM_METAG_PROM_H |
15 | #define __ASM_METAG_PROM_H | 15 | #define __ASM_METAG_PROM_H |
16 | 16 | ||
17 | #define HAVE_ARCH_DEVTREE_FIXUPS | ||
18 | 17 | ||
19 | extern void copy_fdt(void); | 18 | extern void copy_fdt(void); |
20 | 19 | ||
diff --git a/arch/microblaze/include/asm/prom.h b/arch/microblaze/include/asm/prom.h index 0ebd924902df..2f03ac815851 100644 --- a/arch/microblaze/include/asm/prom.h +++ b/arch/microblaze/include/asm/prom.h | |||
@@ -16,8 +16,6 @@ | |||
16 | 16 | ||
17 | #include <linux/of.h> | 17 | #include <linux/of.h> |
18 | 18 | ||
19 | #define HAVE_ARCH_DEVTREE_FIXUPS | ||
20 | |||
21 | /* Other Prototypes */ | 19 | /* Other Prototypes */ |
22 | enum early_consoles { | 20 | enum early_consoles { |
23 | UARTLITE = 1, | 21 | UARTLITE = 1, |
diff --git a/arch/openrisc/include/asm/prom.h b/arch/openrisc/include/asm/prom.h index 93c9980e1b6b..bec477ba9f7d 100644 --- a/arch/openrisc/include/asm/prom.h +++ b/arch/openrisc/include/asm/prom.h | |||
@@ -17,6 +17,4 @@ | |||
17 | #ifndef _ASM_OPENRISC_PROM_H | 17 | #ifndef _ASM_OPENRISC_PROM_H |
18 | #define _ASM_OPENRISC_PROM_H | 18 | #define _ASM_OPENRISC_PROM_H |
19 | 19 | ||
20 | #define HAVE_ARCH_DEVTREE_FIXUPS | ||
21 | |||
22 | #endif /* _ASM_OPENRISC_PROM_H */ | 20 | #endif /* _ASM_OPENRISC_PROM_H */ |
diff --git a/arch/powerpc/include/asm/prom.h b/arch/powerpc/include/asm/prom.h index 6707c16d8fc5..43fe0023d722 100644 --- a/arch/powerpc/include/asm/prom.h +++ b/arch/powerpc/include/asm/prom.h | |||
@@ -20,8 +20,6 @@ | |||
20 | #include <asm/irq.h> | 20 | #include <asm/irq.h> |
21 | #include <linux/atomic.h> | 21 | #include <linux/atomic.h> |
22 | 22 | ||
23 | #define HAVE_ARCH_DEVTREE_FIXUPS | ||
24 | |||
25 | /* | 23 | /* |
26 | * OF address retreival & translation | 24 | * OF address retreival & translation |
27 | */ | 25 | */ |
diff --git a/arch/x86/include/asm/prom.h b/arch/x86/include/asm/prom.h index 8ef2ec70858f..fbeb06ed0eaa 100644 --- a/arch/x86/include/asm/prom.h +++ b/arch/x86/include/asm/prom.h | |||
@@ -39,7 +39,5 @@ static inline void x86_dtb_init(void) { } | |||
39 | 39 | ||
40 | extern char cmd_line[COMMAND_LINE_SIZE]; | 40 | extern char cmd_line[COMMAND_LINE_SIZE]; |
41 | 41 | ||
42 | #define HAVE_ARCH_DEVTREE_FIXUPS | ||
43 | |||
44 | #endif /* __ASSEMBLY__ */ | 42 | #endif /* __ASSEMBLY__ */ |
45 | #endif | 43 | #endif |
diff --git a/arch/xtensa/include/asm/prom.h b/arch/xtensa/include/asm/prom.h index f3d7cd2c0de7..2a87a583b41b 100644 --- a/arch/xtensa/include/asm/prom.h +++ b/arch/xtensa/include/asm/prom.h | |||
@@ -1,6 +1,4 @@ | |||
1 | #ifndef _XTENSA_ASM_PROM_H | 1 | #ifndef _XTENSA_ASM_PROM_H |
2 | #define _XTENSA_ASM_PROM_H | 2 | #define _XTENSA_ASM_PROM_H |
3 | 3 | ||
4 | #define HAVE_ARCH_DEVTREE_FIXUPS | ||
5 | |||
6 | #endif /* _XTENSA_ASM_PROM_H */ | 4 | #endif /* _XTENSA_ASM_PROM_H */ |
diff --git a/fs/proc/proc_devtree.c b/fs/proc/proc_devtree.c index 106a83570630..70779b2fc209 100644 --- a/fs/proc/proc_devtree.c +++ b/fs/proc/proc_devtree.c | |||
@@ -14,16 +14,13 @@ | |||
14 | #include <linux/of.h> | 14 | #include <linux/of.h> |
15 | #include <linux/export.h> | 15 | #include <linux/export.h> |
16 | #include <linux/slab.h> | 16 | #include <linux/slab.h> |
17 | #include <asm/prom.h> | ||
18 | #include <asm/uaccess.h> | 17 | #include <asm/uaccess.h> |
19 | #include "internal.h" | 18 | #include "internal.h" |
20 | 19 | ||
21 | static inline void set_node_proc_entry(struct device_node *np, | 20 | static inline void set_node_proc_entry(struct device_node *np, |
22 | struct proc_dir_entry *de) | 21 | struct proc_dir_entry *de) |
23 | { | 22 | { |
24 | #ifdef HAVE_ARCH_DEVTREE_FIXUPS | ||
25 | np->pde = de; | 23 | np->pde = de; |
26 | #endif | ||
27 | } | 24 | } |
28 | 25 | ||
29 | static struct proc_dir_entry *proc_device_tree; | 26 | static struct proc_dir_entry *proc_device_tree; |