diff options
author | Andy Shevchenko <[email protected]> | 2023-03-22 16:40:00 +0200 |
---|---|---|
committer | Chanwoo Choi <[email protected]> | 2023-05-29 23:41:29 +0900 |
commit | 0146f56b91a8ad287e7c94ea340b95a7040d29cf (patch) | |
tree | 5fd32e4c123aaa05287d5c248f396b83c2e6dd49 | |
parent | 2b5e61f5069c29df7119af683ea1cf3c3f20a4bd (diff) |
extcon: Use device_match_of_node() helper
Instead of open coding, use device_match_of_node() helper.
Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: Chanwoo Choi <[email protected]>
-rw-r--r-- | drivers/extcon/extcon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/extcon/extcon.c b/drivers/extcon/extcon.c index ac84f4aafc69..588c552b9525 100644 --- a/drivers/extcon/extcon.c +++ b/drivers/extcon/extcon.c @@ -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: |