PM / devfreq: Fix incorrect type issue.
authorXiaolong Ye <yexl@marvell.com>
Fri, 11 Sep 2015 03:05:23 +0000 (11:05 +0800)
committerJiri Slaby <jslaby@suse.cz>
Tue, 5 Jan 2016 17:38:22 +0000 (18:38 +0100)
commite34dac5a89a0b35702690fb28d14e77882c26f8c
tree95ea2c7d4abc48dd519d165985dab5b0af203356
parent9f102bae333812d94c1ced6add991d5cb6f43e1f
PM / devfreq: Fix incorrect type issue.

commit 5f25f066f75a67835abb5e400471a27abd09395b upstream.

time_in_state in struct devfreq is defined as unsigned long, so
devm_kzalloc should use sizeof(unsigned long) as argument instead
of sizeof(unsigned int), otherwise it will cause unexpected result
in 64bit system.

Signed-off-by: Xiaolong Ye <yexl@marvell.com>
Signed-off-by: Kevin Liu <kliu5@marvell.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Cc: Oliver Neukum <ONeukum@suse.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/devfreq/devfreq.c