Commit ec894883 authored by pierre Kuo's avatar pierre Kuo Committed by Chanwoo Choi

PM / devfreq: Replace devfreq->dev.parent as dev in devfreq_add_device

In devfreq_add_device, replace devfreq->dev.parent
as dev to keep code simple.
Signed-off-by: default avatarpierre Kuo <vichy.kuo@gmail.com>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent f40d8123
...@@ -893,13 +893,13 @@ struct devfreq *devfreq_add_device(struct device *dev, ...@@ -893,13 +893,13 @@ struct devfreq *devfreq_add_device(struct device *dev,
goto err_devfreq; goto err_devfreq;
devfreq->nb_min.notifier_call = qos_min_notifier_call; devfreq->nb_min.notifier_call = qos_min_notifier_call;
err = dev_pm_qos_add_notifier(devfreq->dev.parent, &devfreq->nb_min, err = dev_pm_qos_add_notifier(dev, &devfreq->nb_min,
DEV_PM_QOS_MIN_FREQUENCY); DEV_PM_QOS_MIN_FREQUENCY);
if (err) if (err)
goto err_devfreq; goto err_devfreq;
devfreq->nb_max.notifier_call = qos_max_notifier_call; devfreq->nb_max.notifier_call = qos_max_notifier_call;
err = dev_pm_qos_add_notifier(devfreq->dev.parent, &devfreq->nb_max, err = dev_pm_qos_add_notifier(dev, &devfreq->nb_max,
DEV_PM_QOS_MAX_FREQUENCY); DEV_PM_QOS_MAX_FREQUENCY);
if (err) if (err)
goto err_devfreq; goto err_devfreq;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment