lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Fri, 18 Nov 2022 10:45:30 +0100
From:   Ulf Hansson <ulf.hansson@...aro.org>
To:     ye.xingchen@....com.cn
Cc:     linux-mmc@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH linux-next] mmc: pwrseq: Use device_match_of_node()

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ