mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH linux-next] mmc: pwrseq: Use device_match_of_node()
@ 2022-11-17  7:24 ye.xingchen
  2022-11-18  9:45 ` Ulf Hansson
  0 siblings, 1 reply; 2+ messages in thread
From: ye.xingchen @ 2022-11-17  7:24 UTC (permalink / raw)
  To: ulf.hansson; +Cc: linux-mmc, linux-kernel

From: ye xingchen <ye.xingchen@zte.com.cn>

Replace the open-code with device_match_of_node().

Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
---
 drivers/mmc/core/pwrseq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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");
-- 
2.25.1

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH linux-next] mmc: pwrseq: Use device_match_of_node()
  2022-11-17  7:24 [PATCH linux-next] mmc: pwrseq: Use device_match_of_node() ye.xingchen
@ 2022-11-18  9:45 ` Ulf Hansson
  0 siblings, 0 replies; 2+ messages in thread
From: Ulf Hansson @ 2022-11-18  9:45 UTC (permalink / raw)
  To: ye.xingchen; +Cc: linux-mmc, linux-kernel

On Thu, 17 Nov 2022 at 08:24, <ye.xingchen@zte.com.cn> wrote:
>
> From: ye xingchen <ye.xingchen@zte.com.cn>
>
> Replace the open-code with device_match_of_node().
>
> Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>

Applied for next, thanks!

Kind regards
Uffe


> ---
>  drivers/mmc/core/pwrseq.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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");
> --
> 2.25.1

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-11-18  9:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-17  7:24 [PATCH linux-next] mmc: pwrseq: Use device_match_of_node() ye.xingchen
2022-11-18  9:45 ` Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®