[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <462db4cd-24d0-7541-1a7c-e4a87d69c217@gmail.com>
Date: Sat, 3 Dec 2022 08:05:31 +0900
From: Chanwoo Choi <cwchoi00@...il.com>
To: ye.xingchen@....com.cn, cw00.choi@...sung.com
Cc: myungjoo.ham@...sung.com, kyungmin.park@...sung.com,
linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] PM / devfreq: Use device_match_of_node()
On 22. 11. 25. 16:16, ye.xingchen@....com.cn wrote:
> From: ye xingchen <ye.xingchen@....com.cn>
>
> Replace the open-code with device_match_of_node().
>
> Signed-off-by: ye xingchen <ye.xingchen@....com.cn>
> ---
> drivers/devfreq/devfreq.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c
> index 8c5f6f7fca11..817c71da391a 100644
> --- a/drivers/devfreq/devfreq.c
> +++ b/drivers/devfreq/devfreq.c
> @@ -1057,7 +1057,7 @@ struct devfreq *devfreq_get_devfreq_by_node(struct device_node *node)
> mutex_lock(&devfreq_list_lock);
> list_for_each_entry(devfreq, &devfreq_list, node) {
> if (devfreq->dev.parent
> - && devfreq->dev.parent->of_node == node) {
> + && device_match_of_node(devfreq->dev.parent, node)) {
> mutex_unlock(&devfreq_list_lock);
> return devfreq;
> }
Applied it.
--
Best Regards,
Samsung Electronics
Chanwoo Choi
Powered by blists - more mailing lists