projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fdded8
)
PM / devfreq: Use device_match_of_node()
author
ye xingchen
<ye.xingchen@zte.com.cn>
Fri, 25 Nov 2022 07:16:22 +0000
(15:16 +0800)
committer
Chanwoo Choi
<cw00.choi@samsung.com>
Fri, 2 Dec 2022 23:04:40 +0000
(08:04 +0900)
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>
drivers/devfreq/devfreq.c
patch
|
blob
|
history
diff --git
a/drivers/devfreq/devfreq.c
b/drivers/devfreq/devfreq.c
index
8c5f6f7
..
817c71d
100644
(file)
--- 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
- && dev
freq->dev.parent->of_node == node
) {
+ && dev
ice_match_of_node(devfreq->dev.parent, node)
) {
mutex_unlock(&devfreq_list_lock);
return devfreq;
}