projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4c04e7
)
pinctrl: core: Use device_match_of_node() helper
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Wed, 29 Jun 2022 11:58:40 +0000
(14:58 +0300)
committer
Linus Walleij
<linus.walleij@linaro.org>
Mon, 18 Jul 2022 09:38:37 +0000
(11:38 +0200)
Instead of open coding, use device_match_of_node() helper.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link:
https://lore.kernel.org/r/20220629115840.16241-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/core.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/core.c
b/drivers/pinctrl/core.c
index
ffe3933
..
9e57f4c
100644
(file)
--- a/
drivers/pinctrl/core.c
+++ b/
drivers/pinctrl/core.c
@@
-126,7
+126,7
@@
struct pinctrl_dev *get_pinctrl_dev_from_of_node(struct device_node *np)
mutex_lock(&pinctrldev_list_mutex);
list_for_each_entry(pctldev, &pinctrldev_list, node)
- if (
pctldev->dev->of_node == np
) {
+ if (
device_match_of_node(pctldev->dev, np)
) {
mutex_unlock(&pinctrldev_list_mutex);
return pctldev;
}