[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87lfqib7zn.fsf@FE-laptop>
Date: Wed, 08 Jan 2020 10:41:32 +0100
From: Gregory CLEMENT <gregory.clement@...tlin.com>
To: Yangtao Li <tiny.windzz@...il.com>, ssantosh@...nel.org,
paul@...pouillou.net, matthias.bgg@...il.com, rogerq@...com,
tony@...mide.com, lukasz.luba@....com, kgene@...nel.org,
krzk@...nel.org, thierry.reding@...il.com, jonathanh@...dia.com,
allison@...utok.net, tglx@...utronix.de, yong.wu@...iatek.com,
jroedel@...e.de, evgreen@...omium.org, rfontana@...hat.com,
digetx@...il.com, pdeschrijver@...dia.com, john@...ozen.org,
alexios.zavras@...el.com, sboyd@...nel.org,
kstewart@...uxfoundation.org, info@...ux.net,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, linux-omap@...r.kernel.org,
linux-pm@...r.kernel.org, linux-samsung-soc@...r.kernel.org,
linux-tegra@...r.kernel.org
Cc: Yangtao Li <tiny.windzz@...il.com>
Subject: Re: [PATCH 3/9] memory: mvebu-devbus: convert to devm_platform_ioremap_resource
Hi Yangtao Li,
> Use devm_platform_ioremap_resource() to simplify code.
>
> Signed-off-by: Yangtao Li <tiny.windzz@...il.com>
Applied on mvebu/drivers
Thanks,
Gregory
> ---
> drivers/memory/mvebu-devbus.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/memory/mvebu-devbus.c b/drivers/memory/mvebu-devbus.c
> index 095f8a3b2cfc..886aea587276 100644
> --- a/drivers/memory/mvebu-devbus.c
> +++ b/drivers/memory/mvebu-devbus.c
> @@ -267,7 +267,6 @@ static int mvebu_devbus_probe(struct platform_device *pdev)
> struct devbus_read_params r;
> struct devbus_write_params w;
> struct devbus *devbus;
> - struct resource *res;
> struct clk *clk;
> unsigned long rate;
> int err;
> @@ -277,8 +276,7 @@ static int mvebu_devbus_probe(struct platform_device *pdev)
> return -ENOMEM;
>
> devbus->dev = dev;
> - res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> - devbus->base = devm_ioremap_resource(&pdev->dev, res);
> + devbus->base = devm_platform_ioremap_resource(pdev, 0);
> if (IS_ERR(devbus->base))
> return PTR_ERR(devbus->base);
>
> --
> 2.17.1
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@...ts.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
--
Gregory Clement, Bootlin
Embedded Linux and Kernel engineering
http://bootlin.com
Powered by blists - more mailing lists