diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-06-29 14:58:40 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2022-07-18 11:38:37 +0200 |
commit | 03da7f9873196a4489b71470fd0ff21529cb7537 (patch) | |
tree | d587d4c24e0613af99db0a6772e821c497a91bc7 /drivers/pinctrl | |
parent | e4c04e7a17cf4925f280e55049704d76ea6b90e2 (diff) | |
download | linux-03da7f9873196a4489b71470fd0ff21529cb7537.tar.gz linux-03da7f9873196a4489b71470fd0ff21529cb7537.tar.bz2 linux-03da7f9873196a4489b71470fd0ff21529cb7537.zip |
pinctrl: core: 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>
Link: https://lore.kernel.org/r/20220629115840.16241-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c index ffe39336fcac..9e57f4c62e60 100644 --- 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; } |