[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190802161701.GD14470@kwain>
Date: Fri, 2 Aug 2019 18:17:01 +0200
From: Antoine Tenart <antoine.tenart@...tlin.com>
To: YueHaibing <yuehaibing@...wei.com>
Cc: herbert@...dor.apana.org.au, lars.persson@...s.com,
jesper.nilsson@...s.com, davem@...emloft.net,
thomas.lendacky@....com, gary.hook@....com, krzk@...nel.org,
kgene@...nel.org, antoine.tenart@...tlin.com,
matthias.bgg@...il.com, jamie@...ieiles.com, agross@...nel.org,
heiko@...ech.de, mcoquelin.stm32@...il.com,
alexandre.torgue@...com, clabbe.montjoie@...il.com,
mripard@...nel.org, wens@...e.org, linux-kernel@...r.kernel.org,
linux-crypto@...r.kernel.org, linux-arm-kernel@...s.com,
linux-samsung-soc@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, linux-arm-msm@...r.kernel.org,
linux-rockchip@...ts.infradead.org,
linux-stm32@...md-mailman.stormreply.com
Subject: Re: [PATCH -next 05/12] crypto: inside-secure - use
devm_platform_ioremap_resource() to simplify code
Hello,
On Fri, Aug 02, 2019 at 09:28:02PM +0800, YueHaibing wrote:
> Use devm_platform_ioremap_resource() to simplify the code a bit.
> This is detected by coccinelle.
>
> Reported-by: Hulk Robot <hulkci@...wei.com>
> Signed-off-by: YueHaibing <yuehaibing@...wei.com>
Acked-by: Antoine Tenart <antoine.tenart@...tlin.com>
Thanks,
Antoine
> ---
> drivers/crypto/inside-secure/safexcel.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/crypto/inside-secure/safexcel.c b/drivers/crypto/inside-secure/safexcel.c
> index d1f60fd..822744d 100644
> --- a/drivers/crypto/inside-secure/safexcel.c
> +++ b/drivers/crypto/inside-secure/safexcel.c
> @@ -999,7 +999,6 @@ static void safexcel_init_register_offsets(struct safexcel_crypto_priv *priv)
> static int safexcel_probe(struct platform_device *pdev)
> {
> struct device *dev = &pdev->dev;
> - struct resource *res;
> struct safexcel_crypto_priv *priv;
> int i, ret;
>
> @@ -1015,8 +1014,7 @@ static int safexcel_probe(struct platform_device *pdev)
>
> safexcel_init_register_offsets(priv);
>
> - res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> - priv->base = devm_ioremap_resource(dev, res);
> + priv->base = devm_platform_ioremap_resource(pdev, 0);
> if (IS_ERR(priv->base)) {
> dev_err(dev, "failed to get resource\n");
> return PTR_ERR(priv->base);
> --
> 2.7.4
>
>
--
Antoine Ténart, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Powered by blists - more mailing lists