projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b5e61f
)
extcon: Use device_match_of_node() helper
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Wed, 22 Mar 2023 14:40:00 +0000
(16:40 +0200)
committer
Chanwoo Choi
<cw00.choi@samsung.com>
Mon, 29 May 2023 14:41:29 +0000
(23:41 +0900)
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>
drivers/extcon/extcon.c
patch
|
blob
|
history
diff --git
a/drivers/extcon/extcon.c
b/drivers/extcon/extcon.c
index ac84f4aafc697772947417ac3ed686f0817ff268..588c552b95254e2ba08ffe6ed0f53235fcf751dc 100644
(file)
--- 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: