[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMz4kuJECc9uvJ-z9A+b1H2u6-XEOxrBQiQ-=YQy0jeAbm8wvw@mail.gmail.com>
Date: Tue, 12 Mar 2019 10:40:03 +0800
From: Baolin Wang <baolin.wang@...aro.org>
To: "Enrico Weigelt, metux IT consult" <info@...ux.net>
Cc: LKML <linux-kernel@...r.kernel.org>,
Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <bgolaszewski@...libre.com>,
andrew@...id.au, f.fainelli@...il.com, sbranden@...adcom.com,
bcm-kernel-feedback-list@...adcom.com, hoan@...amperecomputing.com,
Orson Zhai <orsonzhai@...il.com>,
Chunyan Zhang <zhang.lyra@...il.com>, keguang.zhang@...il.com,
vz@...ia.com, matthias.bgg@...il.com,
Thierry Reding <thierry.reding@...il.com>,
Grygorii Strashko <grygorii.strashko@...com>,
ssantosh@...nel.org, khilman@...nel.org,
Robert Jarzmik <robert.jarzmik@...e.fr>,
Masahiro Yamada <yamada.masahiro@...ionext.com>,
jun.nie@...aro.org, shawnguo@...nel.org,
"open list:GPIO SUBSYSTEM" <linux-gpio@...r.kernel.org>,
linux-mips@...r.kernel.org, linux-pwm@...r.kernel.org,
linux-omap@...r.kernel.org, linux-tegra@...r.kernel.org
Subject: Re: [PATCH 29/42] drivers: gpio: sprd: use devm_platform_ioremap_resource()
Hi,
On Tue, 12 Mar 2019 at 02:57, Enrico Weigelt, metux IT consult
<info@...ux.net> wrote:
>
> Use the new helper that wraps the calls to platform_get_resource()
> and devm_ioremap_resource() together.
>
> Signed-off-by: Enrico Weigelt, metux IT consult <info@...ux.net>
> ---
> drivers/gpio/gpio-sprd.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/gpio/gpio-sprd.c b/drivers/gpio/gpio-sprd.c
> index 55072d2..f5c8b3a 100644
> --- a/drivers/gpio/gpio-sprd.c
> +++ b/drivers/gpio/gpio-sprd.c
> @@ -219,7 +219,6 @@ static int sprd_gpio_probe(struct platform_device *pdev)
> {
> struct gpio_irq_chip *irq;
> struct sprd_gpio *sprd_gpio;
> - struct resource *res;
> int ret;
>
> sprd_gpio = devm_kzalloc(&pdev->dev, sizeof(*sprd_gpio), GFP_KERNEL);
> @@ -232,8 +231,7 @@ static int sprd_gpio_probe(struct platform_device *pdev)
> return sprd_gpio->irq;
> }
>
> - res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> - sprd_gpio->base = devm_ioremap_resource(&pdev->dev, res);
> + sprd_gpio->base = devm_platform_ioremap_resource(pdev, 0);
> if (IS_ERR(sprd_gpio->base))
> return PTR_ERR(sprd_gpio->base);
>
Thanks for your patch.
Reviewed-by: Baolin Wang <baolin.wang@...aro.org>
--
Baolin Wang
Best Regards
Powered by blists - more mailing lists