]> git.karo-electronics.de Git - linux-beck.git/commitdiff
x86: OLPC: Cleanup config maze completely
authorThomas Gleixner <tglx@linutronix.de>
Wed, 23 Feb 2011 09:08:31 +0000 (10:08 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 23 Feb 2011 09:40:45 +0000 (10:40 +0100)
Neither CONFIG_OLPC_OPENFIRMWARE nor CONFIG_OLPC_OPENFIRMWARE_DT are
really necessary.

OLPC selects OLPC_OPENFIRMWARE unconditionally, so move the "select
OF" part under OLPC config option and fixup the dependencies in
Makefiles and code.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Andres Salomon <dilinger@queued.net>
arch/x86/Kconfig
arch/x86/include/asm/olpc_ofw.h
arch/x86/kernel/head_32.S
arch/x86/platform/olpc/Makefile

index dbc10fce6665e9e31c029a98f3aaa5f0056dc2bc..677501d061a33dc27aeef8ecbaae4ea00e116665 100644 (file)
@@ -2066,9 +2066,10 @@ config SCx200HR_TIMER
 
 config OLPC
        bool "One Laptop Per Child support"
-       select GPIOLIB
-       select OLPC_OPENFIRMWARE
        depends on !X86_PAE
+       select GPIOLIB
+       select OF
+       select OLPC_OPENFIRMWARE_DT if PROC_DEVICETREE
        ---help---
          Add support for detecting the unique features of the OLPC
          XO hardware.
@@ -2079,11 +2080,6 @@ config OLPC_XO1
        ---help---
          Add support for non-essential features of the OLPC XO-1 laptop.
 
-config OLPC_OPENFIRMWARE
-       bool
-       select OF
-       select OLPC_OPENFIRMWARE_DT if PROC_DEVICETREE
-
 config OLPC_OPENFIRMWARE_DT
        bool
        select OF_PROMTREE
index 641988efe0635a8e2840a17f898c70af9eb6eec7..1fff2de124e5ad402bd33bba7c1ac101233284a8 100644 (file)
@@ -6,8 +6,6 @@
 
 #define OLPC_OFW_SIG 0x2057464F        /* aka "OFW " */
 
-#ifdef CONFIG_OLPC_OPENFIRMWARE
-
 extern bool olpc_ofw_is_installed(void);
 
 /* run an OFW command by calling into the firmware */
@@ -26,15 +24,6 @@ extern void setup_olpc_ofw_pgd(void);
 /* check if OFW was detected during boot */
 extern bool olpc_ofw_present(void);
 
-#else /* !CONFIG_OLPC_OPENFIRMWARE */
-
-static inline bool olpc_ofw_is_installed(void) { return false; }
-static inline void olpc_ofw_detect(void) { }
-static inline void setup_olpc_ofw_pgd(void) { }
-static inline bool olpc_ofw_present(void) { return false; }
-
-#endif /* !CONFIG_OLPC_OPENFIRMWARE */
-
 #ifdef CONFIG_OLPC_OPENFIRMWARE_DT
 extern void olpc_dt_build_devicetree(void);
 #else
index 767d6c43de372297daffc57ef3960d5b3c2a97ac..d8cc18a83260e233b4d0d529b4dfdecf738e992c 100644 (file)
@@ -137,7 +137,7 @@ ENTRY(startup_32)
        movsl
 1:
 
-#ifdef CONFIG_OLPC_OPENFIRMWARE
+#ifdef CONFIG_OLPC
        /* save OFW's pgdir table for later use when calling into OFW */
        movl %cr3, %eax
        movl %eax, pa(olpc_ofw_pgd)
index e797428b163bb0b58d40cf7dc4b70518f7571dce..e18e641ae7bd92652a2920be317411a96f96157b 100644 (file)
@@ -1,4 +1,4 @@
 obj-$(CONFIG_OLPC)             += olpc.o
 obj-$(CONFIG_OLPC_XO1)         += olpc-xo1.o
-obj-$(CONFIG_OLPC_OPENFIRMWARE)        += olpc_ofw.o
+obj-$(CONFIG_OLPC)             += olpc_ofw.o
 obj-$(CONFIG_OLPC_OPENFIRMWARE_DT)     += olpc_dt.o