[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOVJa8FTyX89MWieV3C+NmmDqS4EWi7Aok-j4_Tti_ZmVS050A@mail.gmail.com>
Date: Mon, 28 Dec 2020 23:21:53 +0800
From: pierre kuo <vichy.kuo@...il.com>
To: myungjoo.ham@...sung.com, kyungmin.park@...sung.com,
cw00.choi@...sung.com
Cc: Linux PM list <linux-pm@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/1] PM / devfreq: Replace devfreq->dev.parent as dev in devfreq_add_device
Hi myungjoo, kyungmin and cw:
Would you please help to review this patch?
Thanks a lot.
pierre Kuo <vichy.kuo@...il.com> 於 2020年12月16日 週三 上午10:26寫道:
>
> In devfreq_add_device, replace devfreq->dev.parent
> as dev to keep code simple.
>
> Signed-off-by: pierre Kuo <vichy.kuo@...il.com>
> ---
> drivers/devfreq/devfreq.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c
> index 6aa10de792b3..94cc25fd68da 100644
> --- a/drivers/devfreq/devfreq.c
> +++ b/drivers/devfreq/devfreq.c
> @@ -893,13 +893,13 @@ struct devfreq *devfreq_add_device(struct device *dev,
> goto err_devfreq;
>
> 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);
> if (err)
> goto err_devfreq;
>
> 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);
> if (err)
> goto err_devfreq;
> --
> 2.17.1
>
Powered by blists - more mailing lists