Skip to content

Commit ad44c2f

Browse files
ye xingchenchanwoochoi
authored andcommitted
PM / devfreq: event: 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 fba3953 commit ad44c2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/devfreq/devfreq-event.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ struct devfreq_event_dev *devfreq_event_get_edev_by_phandle(struct device *dev,
233233

234234
mutex_lock(&devfreq_event_list_lock);
235235
list_for_each_entry(edev, &devfreq_event_list, node) {
236-
if (edev->dev.parent && edev->dev.parent->of_node == node)
236+
if (edev->dev.parent && device_match_of_node(edev->dev.parent, node))
237237
goto out;
238238
}
239239

0 commit comments

Comments
 (0)