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]
Message-ID: <CAGt4E5tyGQStKT3S=tUg8CLchzS3S3g8Byh2Kap9oids=jF-UQ@mail.gmail.com>
Date:   Tue, 26 Apr 2022 09:52:05 -0700
From:   Markus Mayer <mmayer@...adcom.com>
To:     Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Cc:     Broadcom Kernel Team <bcm-kernel-feedback-list@...adcom.com>,
        Florian Fainelli <f.fainelli@...il.com>,
        Santosh Shilimkar <ssantosh@...nel.org>,
        Thierry Reding <thierry.reding@...il.com>,
        Jonathan Hunter <jonathanh@...dia.com>,
        Linux ARM Kernel <linux-arm-kernel@...ts.infradead.org>,
        Linux Kernel <linux-kernel@...r.kernel.org>,
        linux-tegra@...r.kernel.org
Subject: Re: [PATCH 6/7] memory: brcmstb_dpfe: simplify platform_get_resource_byname()

On Tue, 19 Apr 2022 at 07:29, Krzysztof Kozlowski
<krzysztof.kozlowski@...aro.org> wrote:
>
> Use devm_platform_ioremap_resource_byname() instead of
> platform_get_resource_byname() and devm_ioremap_resource().
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>

Thanks for the change.

Acked-by: Markus Mayer <mmayer@...adcom.com>

Regards,
-Markus

> ---
>  drivers/memory/brcmstb_dpfe.c | 10 +++-------
>  1 file changed, 3 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/memory/brcmstb_dpfe.c b/drivers/memory/brcmstb_dpfe.c
> index 14412002775d..76c82e9c8fce 100644
> --- a/drivers/memory/brcmstb_dpfe.c
> +++ b/drivers/memory/brcmstb_dpfe.c
> @@ -857,7 +857,6 @@ static int brcmstb_dpfe_probe(struct platform_device *pdev)
>  {
>         struct device *dev = &pdev->dev;
>         struct brcmstb_dpfe_priv *priv;
> -       struct resource *res;
>         int ret;
>
>         priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
> @@ -869,22 +868,19 @@ static int brcmstb_dpfe_probe(struct platform_device *pdev)
>         mutex_init(&priv->lock);
>         platform_set_drvdata(pdev, priv);
>
> -       res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dpfe-cpu");
> -       priv->regs = devm_ioremap_resource(dev, res);
> +       priv->regs = devm_platform_ioremap_resource_byname(pdev, "dpfe-cpu");
>         if (IS_ERR(priv->regs)) {
>                 dev_err(dev, "couldn't map DCPU registers\n");
>                 return -ENODEV;
>         }
>
> -       res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dpfe-dmem");
> -       priv->dmem = devm_ioremap_resource(dev, res);
> +       priv->dmem = devm_platform_ioremap_resource_byname(pdev, "dpfe-dmem");
>         if (IS_ERR(priv->dmem)) {
>                 dev_err(dev, "Couldn't map DCPU data memory\n");
>                 return -ENOENT;
>         }
>
> -       res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dpfe-imem");
> -       priv->imem = devm_ioremap_resource(dev, res);
> +       priv->imem = devm_platform_ioremap_resource_byname(pdev, "dpfe-imem");
>         if (IS_ERR(priv->imem)) {
>                 dev_err(dev, "Couldn't map DCPU instruction memory\n");
>                 return -ENOENT;
> --
> 2.32.0
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ