Skip to content

Commit

Permalink
of: remove HAVE_ARCH_DEVTREE_FIXUPS
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Vineet Gupta <[email protected]>
Acked-by: Grant Likely <[email protected]>
Cc: Russell King <[email protected]>
Cc: James Hogan <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Jonas Bonn <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: [email protected]
Cc: Chris Zankel <[email protected]>
Cc: Max Filippov <[email protected]>
  • Loading branch information
Rob Herring committed Oct 10, 2013
1 parent 0c3f061 commit 32df8dc
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 18 deletions.
2 changes: 0 additions & 2 deletions arch/arc/include/asm/prom.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,4 @@
#ifndef _ASM_ARC_PROM_H_
#define _ASM_ARC_PROM_H_

#define HAVE_ARCH_DEVTREE_FIXUPS

#endif
2 changes: 0 additions & 2 deletions arch/arm/include/asm/prom.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion arch/metag/include/asm/prom.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#ifndef __ASM_METAG_PROM_H
#define __ASM_METAG_PROM_H

#define HAVE_ARCH_DEVTREE_FIXUPS

extern void copy_fdt(void);

Expand Down
2 changes: 0 additions & 2 deletions arch/microblaze/include/asm/prom.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

#include <linux/of.h>

#define HAVE_ARCH_DEVTREE_FIXUPS

/* Other Prototypes */
enum early_consoles {
UARTLITE = 1,
Expand Down
2 changes: 0 additions & 2 deletions arch/openrisc/include/asm/prom.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,4 @@
#ifndef _ASM_OPENRISC_PROM_H
#define _ASM_OPENRISC_PROM_H

#define HAVE_ARCH_DEVTREE_FIXUPS

#endif /* _ASM_OPENRISC_PROM_H */
2 changes: 0 additions & 2 deletions arch/powerpc/include/asm/prom.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#include <asm/irq.h>
#include <linux/atomic.h>

#define HAVE_ARCH_DEVTREE_FIXUPS

/*
* OF address retreival & translation
*/
Expand Down
2 changes: 0 additions & 2 deletions arch/x86/include/asm/prom.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 0 additions & 2 deletions arch/xtensa/include/asm/prom.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#ifndef _XTENSA_ASM_PROM_H
#define _XTENSA_ASM_PROM_H

#define HAVE_ARCH_DEVTREE_FIXUPS

#endif /* _XTENSA_ASM_PROM_H */
3 changes: 0 additions & 3 deletions fs/proc/proc_devtree.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,13 @@
#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;
Expand Down

0 comments on commit 32df8dc

Please sign in to comment.