Skip to contentSkip to conversation

OMAP: PM: CPUFREQ: Fix conditional compilation

PATCH In review Silesh C V 2 participants 2 messages Sep 29, 2010

Subsystems (2)
lore
Share & tools
lore

Silesh C V

author
#0 lore raw

PATCH v2 1/1 OMAP: PM: CPUFREQ: Fix conditional compilation

Fix conditional compilation. A conditional expresiion should follow "#elif", in this case #elif clause should check whether CONFIG_ARCH_OMAP3 is defined or not (ie. defined(CONFIG_ARCH_OMAP3)) rather than checking for the value of the macro.

---
 arch/arm/plat-omap/cpu-omap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/plat-omap/cpu-omap.c +1 -1
index df08829..02e4865 100644
@@ -41,7 +41,7 @@ static struct cpufreq_frequency_table *freq_table;
 
 #ifdef CONFIG_ARCH_OMAP1
 #define MPU_CLK		"mpu"
-#elif CONFIG_ARCH_OMAP3
+#elif defined(CONFIG_ARCH_OMAP3)
 #define MPU_CLK		"arm_fck"
 #else
 #define MPU_CLK		"virt_prcm_set"
Signature · 1 line
1.7.0.4
#1 lore raw
Quoted 7 lines · Silesh C V

Fix conditional compilation. A conditional expresiion should follow "#elif", in this case #elif clause should check whether CONFIG_ARCH_OMAP3 is defined or not (ie. defined(CONFIG_ARCH_OMAP3)) rather than checking for the value of the macro.

OK, applied to the pm-cpufreq sub-branch of the PM branch.

Kevin

Quoted 17 lines
---
 arch/arm/plat-omap/cpu-omap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/plat-omap/cpu-omap.c +1 -1
index df08829..02e4865 100644
@@ -41,7 +41,7 @@ static struct cpufreq_frequency_table *freq_table;
 
 #ifdef CONFIG_ARCH_OMAP1
 #define MPU_CLK		"mpu"
-#elif CONFIG_ARCH_OMAP3
+#elif defined(CONFIG_ARCH_OMAP3)
 #define MPU_CLK		"arm_fck"
 #else
 #define MPU_CLK		"virt_prcm_set"