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:
d0ce6ac
)
mmc: pwrseq: Use device_match_of_node()
author
ye xingchen
<ye.xingchen@zte.com.cn>
Thu, 17 Nov 2022 07:24:11 +0000
(15:24 +0800)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Wed, 7 Dec 2022 12:22:37 +0000
(13:22 +0100)
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>
drivers/mmc/core/pwrseq.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/core/pwrseq.c
b/drivers/mmc/core/pwrseq.c
index
ef675f3
..
2374669
100644
(file)
--- 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");