[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAGb2v64uQr6JKCbhY+iMd___bLedvSOMTffg=JDX-pOZHY+sbw@mail.gmail.com>
Date: Wed, 18 Dec 2019 10:27:08 +0800
From: Chen-Yu Tsai <wens@...nel.org>
To: Yangtao Li <tiny.windzz@...il.com>,
Ulf Hansson <ulf.hansson@...aro.org>
Cc: manuel.lauss@...il.com, Kevin Hilman <khilman@...libre.com>,
chaotian.jing@...iatek.com,
Matthias Brugger <matthias.bgg@...il.com>, nico@...xnic.net,
Adrian Hunter <adrian.hunter@...el.com>,
Andy Gross <agross@...nel.org>,
Bjorn Andersson <bjorn.andersson@...aro.org>,
ben-linux@...ff.org, Jaehoon Chung <jh80.chung@...sung.com>,
Viresh Kumar <vireshk@...nel.org>,
Maxime Ripard <mripard@...nel.org>,
wsa+renesas@...g-engineering.com,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Kate Stewart <kstewart@...uxfoundation.org>,
Masahiro Yamada <yamada.masahiro@...ionext.com>,
Thomas Gleixner <tglx@...utronix.de>, allison@...utok.net,
yoshihiro.shimoda.uh@...esas.com, geert+renesas@...der.be,
Linus Walleij <linus.walleij@...aro.org>,
linux-mmc <linux-mmc@...r.kernel.org>,
linux-kernel <linux-kernel@...r.kernel.org>,
linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>,
"open list:ARM/Amlogic Meson..." <linux-amlogic@...ts.infradead.org>,
"moderated list:ARM/Mediatek SoC..."
<linux-mediatek@...ts.infradead.org>,
linux-arm-msm <linux-arm-msm@...r.kernel.org>
Subject: Re: [PATCH 01/13] mmc: sunxi-mmc: convert to devm_platform_ioremap_resource
On Mon, Dec 16, 2019 at 1:51 AM Yangtao Li <tiny.windzz@...il.com> wrote:
>
> Use devm_platform_ioremap_resource() to simplify code.
>
> Signed-off-by: Yangtao Li <tiny.windzz@...il.com>
> ---
Acked-by: Chen-Yu Tsai <wens@...e.org>
> drivers/mmc/host/sunxi-mmc.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/mmc/host/sunxi-mmc.c b/drivers/mmc/host/sunxi-mmc.c
> index d577a6b0ceae..f87d7967457f 100644
> --- a/drivers/mmc/host/sunxi-mmc.c
> +++ b/drivers/mmc/host/sunxi-mmc.c
> @@ -1273,8 +1273,7 @@ static int sunxi_mmc_resource_request(struct sunxi_mmc_host *host,
> if (ret)
> return ret;
>
> - host->reg_base = devm_ioremap_resource(&pdev->dev,
> - platform_get_resource(pdev, IORESOURCE_MEM, 0));
> + host->reg_base = devm_platform_ioremap_resource(pdev, 0);
> if (IS_ERR(host->reg_base))
> return PTR_ERR(host->reg_base);
>
> --
> 2.17.1
>
Powered by blists - more mailing lists