diff options
author | ye xingchen <ye.xingchen@zte.com.cn> | 2022-11-25 10:10:04 +0300 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2022-12-05 15:57:18 +0300 |
commit | ad44c2fd0e22910080e7761fb889c6c6c8c914d8 (patch) | |
tree | 9ad4f0f61d1cae6a14de24dc47034702b01e746d /drivers/devfreq | |
parent | fba395369af5b9ca9c091ec3bfdb02915e8f1141 (diff) | |
download | linux-ad44c2fd0e22910080e7761fb889c6c6c8c914d8.tar.xz |
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>
Diffstat (limited to 'drivers/devfreq')
-rw-r--r-- | drivers/devfreq/devfreq-event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/devfreq/devfreq-event.c b/drivers/devfreq/devfreq-event.c index 6765c03334bc..f041edccd107 100644 --- a/drivers/devfreq/devfreq-event.c +++ b/drivers/devfreq/devfreq-event.c @@ -233,7 +233,7 @@ struct devfreq_event_dev *devfreq_event_get_edev_by_phandle(struct device *dev, mutex_lock(&devfreq_event_list_lock); list_for_each_entry(edev, &devfreq_event_list, node) { - if (edev->dev.parent && edev->dev.parent->of_node == node) + if (edev->dev.parent && device_match_of_node(edev->dev.parent, node)) goto out; } |