diff options
author | ye xingchen <ye.xingchen@zte.com.cn> | 2022-11-25 15:16:22 +0800 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2022-12-03 08:04:40 +0900 |
commit | fba395369af5b9ca9c091ec3bfdb02915e8f1141 (patch) | |
tree | a3dfde64066a3a8a692aff0959cdd4c947c05d61 /drivers/devfreq/devfreq.c | |
parent | 5fdded8448924e3631d466eea499b11606c43640 (diff) | |
download | lwn-fba395369af5b9ca9c091ec3bfdb02915e8f1141.tar.gz lwn-fba395369af5b9ca9c091ec3bfdb02915e8f1141.zip |
PM / devfreq: Use device_match_of_node()
Replace the open-code with device_match_of_node().
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/devfreq/devfreq.c')
-rw-r--r-- | drivers/devfreq/devfreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |