summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorye xingchen <ye.xingchen@zte.com.cn>2022-11-17 15:24:11 +0800
committerUlf Hansson <ulf.hansson@linaro.org>2022-12-07 13:22:37 +0100
commitfa30beccca969ad2fb9431faf1f12ecb6fdb14ce (patch)
treee918e84671a412e7ecd7c4d5ad693eece457f76a /drivers/mmc
parentd0ce6aca9ddf1177d9f2757c9fed502682934343 (diff)
downloadlinux-fa30beccca969ad2fb9431faf1f12ecb6fdb14ce.tar.bz2
mmc: pwrseq: Use device_match_of_node()
Replace the open-code with device_match_of_node(). Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn> Link: https://lore.kernel.org/r/202211171524116446204@zte.com.cn Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/core/pwrseq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/core/pwrseq.c b/drivers/mmc/core/pwrseq.c
index ef675f364bf0..2374669b588a 100644
--- a/drivers/mmc/core/pwrseq.c
+++ b/drivers/mmc/core/pwrseq.c
@@ -29,7 +29,7 @@ int mmc_pwrseq_alloc(struct mmc_host *host)
mutex_lock(&pwrseq_list_mutex);
list_for_each_entry(p, &pwrseq_list, pwrseq_node) {
- if (p->dev->of_node == np) {
+ if (device_match_of_node(p->dev, np)) {
if (!try_module_get(p->owner))
dev_err(host->parent,
"increasing module refcount failed\n");