OMAP: PM: CPUFREQ: Fix conditional compilation
Subsystems (2)
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.
Signed-off-by Silesh C V <[email protected]>
--- arch/arm/plat-omap/cpu-omap.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/plat-omap/cpu-omap.c +1 -1
@@ -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
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_OMAP3is defined or not (ie.defined(CONFIG_ARCH_OMAP3)) rather than checking for the value of the macro.Signed-off-by Silesh C V <[email protected]>
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@@ -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"