[PATCH 3/4] proc: unify PROC_DEVICETREE config

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andres Salomon
Date: Monday, June 28, 2010 - 7:00 pm

Microblaze and PPC both use PROC_DEVICETREE, and OLPC will as well.. put
the Kconfig option into fs/ rather than in arch/*/Kconfig.

Signed-off-by: Andres Salomon <dilinger@queued.net>
---
 arch/microblaze/Kconfig |    8 --------
 arch/powerpc/Kconfig    |    8 --------
 fs/proc/Kconfig         |    8 ++++++++
 3 files changed, 8 insertions(+), 16 deletions(-)

diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig
index 76818f9..b66c962 100644
--- a/arch/microblaze/Kconfig
+++ b/arch/microblaze/Kconfig
@@ -128,14 +128,6 @@ config OF
 	def_bool y
 	select OF_FLATTREE
 
-config PROC_DEVICETREE
-	bool "Support for device tree in /proc"
-	depends on PROC_FS
-	help
-	  This option adds a device-tree directory under /proc which contains
-	  an image of the device tree that the kernel copies from Open
-	  Firmware or other boot firmware. If unsure, say Y here.
-
 endmenu
 
 menu "Advanced setup"
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 328774b..8a56e8b 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -578,14 +578,6 @@ config SCHED_SMT
 	  when dealing with POWER5 cpus at a cost of slightly increased
 	  overhead in some places. If unsure say N here.
 
-config PROC_DEVICETREE
-	bool "Support for device tree in /proc"
-	depends on PROC_FS
-	help
-	  This option adds a device-tree directory under /proc which contains
-	  an image of the device tree that the kernel copies from Open
-	  Firmware or other boot firmware. If unsure, say Y here.
-
 config CMDLINE_BOOL
 	bool "Default bootloader kernel arguments"
 
diff --git a/fs/proc/Kconfig b/fs/proc/Kconfig
index 50f8f06..858a859 100644
--- a/fs/proc/Kconfig
+++ b/fs/proc/Kconfig
@@ -39,6 +39,14 @@ config PROC_VMCORE
         help
         Exports the dump image of crashed kernel in ELF format.
 
+config PROC_DEVICETREE
+	bool "Support for device tree in /proc"
+	depends on PROC_FS && (PPC || MICROBLAZE)
+	help
+	  This option adds a device-tree directory under /proc which contains
+	  an image of the device tree that the kernel copies from Open
+	  Firmware or other boot firmware. If unsure, say Y here.
+
 config PROC_SYSCTL
 	bool "Sysctl support (/proc/sys)" if EMBEDDED
 	depends on PROC_FS
-- 
1.5.6.5

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/4] RFC: OLPC/x86 device tree code, Andres Salomon, (Mon Jun 28, 6:54 pm)
[PATCH 1/4] x86: OLPC: constify an olpc_ofw() arg, Andres Salomon, (Mon Jun 28, 7:00 pm)
[PATCH 3/4] proc: unify PROC_DEVICETREE config, Andres Salomon, (Mon Jun 28, 7:00 pm)
[PATCH 4/4] x86: OLPC: add OLPC device-tree support, Andres Salomon, (Mon Jun 28, 7:00 pm)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ..., Stephen Rothwell, (Mon Jun 28, 11:15 pm)
Re: [PATCH 3/4] proc: unify PROC_DEVICETREE config, Grant Likely, (Tue Jun 29, 12:33 am)
Re: [PATCH 4/4] x86: OLPC: add OLPC device-tree support, Grant Likely, (Tue Jun 29, 1:12 am)
Re: [PATCH 4/4] x86: OLPC: add OLPC device-tree support, Stephen Rothwell, (Tue Jun 29, 1:33 am)
Re: [PATCH 4/4] x86: OLPC: add OLPC device-tree support, Andres Salomon, (Tue Jun 29, 7:23 am)
Re: [PATCH 4/4] x86: OLPC: add OLPC device-tree support, Grant Likely, (Wed Jun 30, 2:13 pm)
Re: [PATCH 4/4] x86: OLPC: add OLPC device-tree support, Andres Salomon, (Wed Jun 30, 2:32 pm)
Re: [PATCH 2/4] sparc: break out some prom device-tree bui ..., Benjamin Herrenschmidt, (Tue Jul 6, 3:17 am)
[tip:x86/olpc] x86, olpc: Constify an olpc_ofw() arg, tip-bot for Andres S ..., (Fri Jul 30, 6:10 pm)
[PATCH 0/9] add OLPC device-tree support, Andres Salomon, (Sun Aug 29, 8:51 pm)
[PATCH 1/9] of: move phandle/ihandle into types.h, Andres Salomon, (Sun Aug 29, 8:53 pm)
[PATCH 6/9] of: add of_pdt namespace to pdt code, Andres Salomon, (Sun Aug 29, 9:02 pm)
[PATCH 7/9] of: add package-to-path support to pdt, Andres Salomon, (Sun Aug 29, 9:04 pm)
[PATCH 9/9] x86: OLPC: add OLPC device-tree support, Andres Salomon, (Sun Aug 29, 9:07 pm)
Re: [PATCH 1/9] of: move phandle/ihandle into types.h, Sam Ravnborg, (Sun Aug 29, 10:06 pm)
RE: [PATCH 8/9] x86: of: irq additions to make drivers/of/ ..., Stephen Neuendorffer, (Mon Aug 30, 8:58 am)
Re: [PATCH 0/9] add OLPC device-tree support, Grant Likely, (Mon Aug 30, 10:58 am)
Re: [PATCH 9/9] x86: OLPC: add OLPC device-tree support, Grant Likely, (Mon Aug 30, 11:14 am)
Re: [PATCH 9/9] x86: OLPC: add OLPC device-tree support, Andres Salomon, (Mon Aug 30, 11:49 am)
Re: [PATCH 9/9] x86: OLPC: add OLPC device-tree support, Grant Likely, (Mon Aug 30, 10:49 pm)
Re: [PATCH 1/9] of: move phandle/ihandle into types.h, Andres Salomon, (Fri Sep 3, 1:17 am)
Re: [PATCH 1/9] of: move phandle/ihandle into types.h, Sam Ravnborg, (Sat Sep 4, 11:22 pm)