intel_idle: Fix a cast to pointer from integer of different size warning in intel_idle

Fix the following warning:

drivers/idle/intel_idle.c: In function 'intel_idle_cpuidle_devices_init':
drivers/idle/intel_idle.c:518:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

By making get_driver_data() return a long instead of an int.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
David Howells 2011-12-15 13:03:14 +00:00 committed by Len Brown
parent 2e92c7ad8f
commit 95e3ec1149
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ static struct cpuidle_state atom_cstates[MWAIT_MAX_NUM_CSTATES] = {
.enter = &intel_idle },
};
static int get_driver_data(int cstate)
static long get_driver_data(int cstate)
{
int driver_data;
switch (cstate) {