Commit fa30becc authored by ye xingchen's avatar ye xingchen Committed by Ulf Hansson

mmc: pwrseq: Use device_match_of_node()

Replace the open-code with device_match_of_node().
Signed-off-by: default avatarye xingchen <ye.xingchen@zte.com.cn>
Link: https://lore.kernel.org/r/202211171524116446204@zte.com.cnSigned-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent d0ce6aca
...@@ -29,7 +29,7 @@ int mmc_pwrseq_alloc(struct mmc_host *host) ...@@ -29,7 +29,7 @@ int mmc_pwrseq_alloc(struct mmc_host *host)
mutex_lock(&pwrseq_list_mutex); mutex_lock(&pwrseq_list_mutex);
list_for_each_entry(p, &pwrseq_list, pwrseq_node) { 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)) if (!try_module_get(p->owner))
dev_err(host->parent, dev_err(host->parent,
"increasing module refcount failed\n"); "increasing module refcount failed\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment