|
@@ -604,21 +604,21 @@ struct devfreq *devfreq_add_device(struct device *dev,
|
|
|
mutex_lock(&devfreq->lock);
|
|
|
}
|
|
|
|
|
|
- devfreq->min_freq = find_available_min_freq(devfreq);
|
|
|
- if (!devfreq->min_freq) {
|
|
|
+ devfreq->scaling_min_freq = find_available_min_freq(devfreq);
|
|
|
+ if (!devfreq->scaling_min_freq) {
|
|
|
mutex_unlock(&devfreq->lock);
|
|
|
err = -EINVAL;
|
|
|
goto err_dev;
|
|
|
}
|
|
|
- devfreq->scaling_min_freq = devfreq->min_freq;
|
|
|
+ devfreq->min_freq = devfreq->scaling_min_freq;
|
|
|
|
|
|
- devfreq->max_freq = find_available_max_freq(devfreq);
|
|
|
- if (!devfreq->max_freq) {
|
|
|
+ devfreq->scaling_max_freq = find_available_max_freq(devfreq);
|
|
|
+ if (!devfreq->scaling_max_freq) {
|
|
|
mutex_unlock(&devfreq->lock);
|
|
|
err = -EINVAL;
|
|
|
goto err_dev;
|
|
|
}
|
|
|
- devfreq->scaling_max_freq = devfreq->max_freq;
|
|
|
+ devfreq->max_freq = devfreq->scaling_max_freq;
|
|
|
|
|
|
dev_set_name(&devfreq->dev, "devfreq%d",
|
|
|
atomic_inc_return(&devfreq_no));
|