Browse Source

proc: unify PROC_DEVICETREE config

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>
[grant.likely@secretlab.ca: changed depends to PROC_FS && !SPARC]
[grant.likely@secretlab.ca: moved to drivers/of/Kconfig]
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Andres Salomon 15 years ago
parent
commit
ef2a4524d6
3 changed files with 8 additions and 16 deletions
  1. 0 8
      arch/microblaze/Kconfig
  2. 0 8
      arch/powerpc/Kconfig
  3. 8 0
      drivers/of/Kconfig

+ 0 - 8
arch/microblaze/Kconfig

@@ -123,14 +123,6 @@ config CMDLINE_FORCE
 	  Set this to have arguments from the default kernel command string
 	  Set this to have arguments from the default kernel command string
 	  override those passed by the boot loader.
 	  override those passed by the boot loader.
 
 
-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
 endmenu
 
 
 menu "Advanced setup"
 menu "Advanced setup"

+ 0 - 8
arch/powerpc/Kconfig

@@ -572,14 +572,6 @@ config SCHED_SMT
 	  when dealing with POWER5 cpus at a cost of slightly increased
 	  when dealing with POWER5 cpus at a cost of slightly increased
 	  overhead in some places. If unsure say N here.
 	  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
 config CMDLINE_BOOL
 	bool "Default bootloader kernel arguments"
 	bool "Default bootloader kernel arguments"
 
 

+ 8 - 0
drivers/of/Kconfig

@@ -7,6 +7,14 @@ config OF
 menu "Flattened Device Tree and Open Firmware support"
 menu "Flattened Device Tree and Open Firmware support"
 	depends on OF
 	depends on OF
 
 
+config PROC_DEVICETREE
+	bool "Support for device tree in /proc"
+	depends on PROC_FS && !SPARC
+	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 OF_FLATTREE
 config OF_FLATTREE
 	bool
 	bool
 	select DTC
 	select DTC