Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

ye xingchen and committed by
Ulf Hansson
fa30becc d0ce6aca

+1 -1
+1 -1
drivers/mmc/core/pwrseq.c
··· 29 29 30 30 mutex_lock(&pwrseq_list_mutex); 31 31 list_for_each_entry(p, &pwrseq_list, pwrseq_node) { 32 - if (p->dev->of_node == np) { 32 + if (device_match_of_node(p->dev, np)) { 33 33 if (!try_module_get(p->owner)) 34 34 dev_err(host->parent, 35 35 "increasing module refcount failed\n");