intel_idle: Fix a cast to pointer from integer of different size warning in intel_idle
authorDavid Howells <dhowells@redhat.com>
Thu, 15 Dec 2011 13:03:14 +0000 (13:03 +0000)
committerLen Brown <len.brown@intel.com>
Tue, 17 Jan 2012 19:19:59 +0000 (14:19 -0500)
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>
drivers/idle/intel_idle.c

index 920c61c730a137054eb62ad82c6e03d39f5b7597..18f9ad8141042dfad587273668c6c544ca34217f 100644 (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) {