From: Grant Coady Date: Tue, 22 Nov 2005 05:32:28 +0000 (-0800) Subject: [PATCH] cpufreq: silence cpufreq for UP X-Git-Tag: v3.12-rc1~40239 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e738cf6d03786486b7e1adbaed1c5c4e14d23626;p=kernel%2Fkernel-generic.git [PATCH] cpufreq: silence cpufreq for UP drivers/cpufreq/cpufreq.c: In function `cpufreq_remove_dev': drivers/cpufreq/cpufreq.c:696: warning: unused variable `cpu_sys_dev' Signed-off-by: Grant Coady Cc: Dave Jones Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 23a6320..1c0f62d 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -693,8 +693,8 @@ static int cpufreq_remove_dev (struct sys_device * sys_dev) unsigned int cpu = sys_dev->id; unsigned long flags; struct cpufreq_policy *data; - struct sys_device *cpu_sys_dev; #ifdef CONFIG_SMP + struct sys_device *cpu_sys_dev; unsigned int j; #endif