소스 검색

arm: msm: warning fix in acpuclock.c

Fixes the following warning,

arch/arm/mach-msm/acpuclock-arm11.c:138: warning: 'freq_table' defined but not used

when CONFIG_CPU_FREQ_TABLE is not enabled.

Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
Daniel Walker 16 년 전
부모
커밋
4eab62519f
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      arch/arm/mach-msm/acpuclock-arm11.c

+ 3 - 0
arch/arm/mach-msm/acpuclock-arm11.c

@@ -135,6 +135,8 @@ static struct clkctl_acpu_speed  acpu_freq_tbl[] = {
 };
 };
 #endif
 #endif
 
 
+
+#ifdef CONFIG_CPU_FREQ_TABLE
 static struct cpufreq_frequency_table freq_table[] = {
 static struct cpufreq_frequency_table freq_table[] = {
 	{ 0, 122880 },
 	{ 0, 122880 },
 	{ 1, 128000 },
 	{ 1, 128000 },
@@ -143,6 +145,7 @@ static struct cpufreq_frequency_table freq_table[] = {
 	{ 4, 528000 },
 	{ 4, 528000 },
 	{ 5, CPUFREQ_TABLE_END },
 	{ 5, CPUFREQ_TABLE_END },
 };
 };
+#endif
 
 
 static int pc_pll_request(unsigned id, unsigned on)
 static int pc_pll_request(unsigned id, unsigned on)
 {
 {