|
@@ -482,7 +482,7 @@ struct devfreq *devfreq_add_device(struct device *dev,
|
|
|
devfreq->profile->max_state *
|
|
|
devfreq->profile->max_state,
|
|
|
GFP_KERNEL);
|
|
|
- devfreq->time_in_state = devm_kzalloc(dev, sizeof(unsigned int) *
|
|
|
+ devfreq->time_in_state = devm_kzalloc(dev, sizeof(unsigned long) *
|
|
|
devfreq->profile->max_state,
|
|
|
GFP_KERNEL);
|
|
|
devfreq->last_stat_updated = jiffies;
|