mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 15:03:52 +08:00
extcon: Use device_match_of_node() helper
Instead of open coding, use device_match_of_node() helper. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
This commit is contained in:
committed by
Chanwoo Choi
parent
2b5e61f506
commit
0146f56b91
@@ -1405,7 +1405,7 @@ struct extcon_dev *extcon_find_edev_by_node(struct device_node *node)
|
||||
|
||||
mutex_lock(&extcon_dev_list_lock);
|
||||
list_for_each_entry(edev, &extcon_dev_list, entry)
|
||||
if (edev->dev.parent && edev->dev.parent->of_node == node)
|
||||
if (edev->dev.parent && device_match_of_node(edev->dev.parent, node))
|
||||
goto out;
|
||||
edev = ERR_PTR(-EPROBE_DEFER);
|
||||
out:
|
||||
|
||||
Reference in New Issue
Block a user