Commit 78d1c35b authored by Dave Jones's avatar Dave Jones Committed by Dave Jones

[CPUFREQ] Warning fixes.

On sparc64:
                                                                                                           
drivers/cpufreq/cpufreq.c: In function `cpufreq_add_dev':
drivers/cpufreq/cpufreq.c:394: warning: cast to pointer from integer of different size
drivers/cpufreq/cpufreq.c: In function `handle_update':
drivers/cpufreq/cpufreq.c:507: warning: cast from pointer to integer of different size
parent 482861fa
......@@ -391,7 +391,7 @@ static int cpufreq_add_dev (struct sys_device * sys_dev)
policy->cpu = cpu;
init_MUTEX_LOCKED(&policy->lock);
init_completion(&policy->kobj_unregister);
INIT_WORK(&policy->update, handle_update, (void *) cpu);
INIT_WORK(&policy->update, handle_update, (void *)(long)cpu);
/* call driver. From then on the cpufreq must be able
* to accept all calls to ->verify and ->setpolicy for this CPU
......@@ -504,7 +504,7 @@ static int cpufreq_remove_dev (struct sys_device * sys_dev)
static void handle_update(void *data)
{
unsigned int cpu = (unsigned int) data;
unsigned int cpu = (unsigned int)(long)data;
cpufreq_update_policy(cpu);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment