Skip to content

Commit 0146f56

Browse files
andy-shevchanwoochoi
authored andcommitted
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>
1 parent 2b5e61f commit 0146f56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/extcon/extcon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1405,7 +1405,7 @@ struct extcon_dev *extcon_find_edev_by_node(struct device_node *node)
14051405

14061406
mutex_lock(&extcon_dev_list_lock);
14071407
list_for_each_entry(edev, &extcon_dev_list, entry)
1408-
if (edev->dev.parent && edev->dev.parent->of_node == node)
1408+
if (edev->dev.parent && device_match_of_node(edev->dev.parent, node))
14091409
goto out;
14101410
edev = ERR_PTR(-EPROBE_DEFER);
14111411
out:

0 commit comments

Comments
 (0)