Skip to content

Commit fba3953

Browse files
ye xingchenchanwoochoi
authored andcommitted
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>
1 parent 5fdded8 commit fba3953

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/devfreq/devfreq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ struct devfreq *devfreq_get_devfreq_by_node(struct device_node *node)
10571057
mutex_lock(&devfreq_list_lock);
10581058
list_for_each_entry(devfreq, &devfreq_list, node) {
10591059
if (devfreq->dev.parent
1060-
&& devfreq->dev.parent->of_node == node) {
1060+
&& device_match_of_node(devfreq->dev.parent, node)) {
10611061
mutex_unlock(&devfreq_list_lock);
10621062
return devfreq;
10631063
}

0 commit comments

Comments
 (0)