提交 95e3ec11 编写于 作者: D David Howells 提交者: Len Brown

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: NDavid Howells <dhowells@redhat.com>
Signed-off-by: NLen Brown <len.brown@intel.com>
上级 2e92c7ad
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册