diff options
Diffstat (limited to 'extras/recipes-kernel/linux/linux-omap-2.6.39/pm/linux-omap-2.6.39-ti-pm-wip-cpufreq/0004-OMAP-PM-CPUFREQ-Fix-conditional-compilation.patch')
-rw-r--r-- | extras/recipes-kernel/linux/linux-omap-2.6.39/pm/linux-omap-2.6.39-ti-pm-wip-cpufreq/0004-OMAP-PM-CPUFREQ-Fix-conditional-compilation.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/extras/recipes-kernel/linux/linux-omap-2.6.39/pm/linux-omap-2.6.39-ti-pm-wip-cpufreq/0004-OMAP-PM-CPUFREQ-Fix-conditional-compilation.patch b/extras/recipes-kernel/linux/linux-omap-2.6.39/pm/linux-omap-2.6.39-ti-pm-wip-cpufreq/0004-OMAP-PM-CPUFREQ-Fix-conditional-compilation.patch new file mode 100644 index 00000000..36742e43 --- /dev/null +++ b/extras/recipes-kernel/linux/linux-omap-2.6.39/pm/linux-omap-2.6.39-ti-pm-wip-cpufreq/0004-OMAP-PM-CPUFREQ-Fix-conditional-compilation.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 86227f1eb341e571163464cb0a412ed2179f2541 Mon Sep 17 00:00:00 2001 | ||
2 | From: Silesh C V <silesh@ti.com> | ||
3 | Date: Wed, 29 Sep 2010 14:52:54 +0530 | ||
4 | Subject: [PATCH 4/8] OMAP: PM: CPUFREQ: Fix conditional compilation | ||
5 | |||
6 | Fix conditional compilation. A conditional expresiion | ||
7 | should follow "#elif", in this case #elif clause should | ||
8 | check whether CONFIG_ARCH_OMAP3 is defined or not | ||
9 | (ie. defined(CONFIG_ARCH_OMAP3)) rather than checking for | ||
10 | the value of the macro. | ||
11 | |||
12 | Signed-off-by: Silesh C V <silesh@ti.com> | ||
13 | --- | ||
14 | arch/arm/plat-omap/cpu-omap.c | 2 +- | ||
15 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
16 | |||
17 | diff --git a/arch/arm/plat-omap/cpu-omap.c b/arch/arm/plat-omap/cpu-omap.c | ||
18 | index f0f9430..c3ac065 100644 | ||
19 | --- a/arch/arm/plat-omap/cpu-omap.c | ||
20 | +++ b/arch/arm/plat-omap/cpu-omap.c | ||
21 | @@ -41,7 +41,7 @@ static struct cpufreq_frequency_table *freq_table; | ||
22 | |||
23 | #ifdef CONFIG_ARCH_OMAP1 | ||
24 | #define MPU_CLK "mpu" | ||
25 | -#elif CONFIG_ARCH_OMAP3 | ||
26 | +#elif defined(CONFIG_ARCH_OMAP3) | ||
27 | #define MPU_CLK "arm_fck" | ||
28 | #else | ||
29 | #define MPU_CLK "virt_prcm_set" | ||
30 | -- | ||
31 | 1.6.6.1 | ||
32 | |||