[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK7LNASPyZVpN2JVT8v6qzXUNfu-dLqcwwSc-eZL+yMyMEFXCg@mail.gmail.com>
Date: Tue, 12 Mar 2019 18:37:02 +0900
From: Masahiro Yamada <yamada.masahiro@...ionext.com>
To: "Enrico Weigelt, metux IT consult" <info@...ux.net>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <bgolaszewski@...libre.com>,
andrew@...id.au, Florian Fainelli <f.fainelli@...il.com>,
Scott Branden <sbranden@...adcom.com>,
Broadcom Kernel Feedback List
<bcm-kernel-feedback-list@...adcom.com>,
hoan@...amperecomputing.com, orsonzhai@...il.com,
baolin.wang@...aro.org, zhang.lyra@...il.com,
keguang.zhang@...il.com, Vladimir Zapolskiy <vz@...ia.com>,
Matthias Brugger <matthias.bgg@...il.com>,
Thierry Reding <thierry.reding@...il.com>,
Grygorii Strashko <grygorii.strashko@...com>,
Santosh Shilimkar <ssantosh@...nel.org>,
Kevin Hilman <khilman@...nel.org>,
Robert Jarzmik <robert.jarzmik@...e.fr>,
Jun Nie <jun.nie@...aro.org>, Shawn Guo <shawnguo@...nel.org>,
"open list:GPIO SUBSYSTEM" <linux-gpio@...r.kernel.org>,
linux-mips@...r.kernel.org, linux-pwm@...r.kernel.org,
Linux-OMAP <linux-omap@...r.kernel.org>,
linux-tegra@...r.kernel.org
Subject: Re: [PATCH 36/42] drivers: gpio: uniphier: use devm_platform_ioremap_resource()
On Tue, Mar 12, 2019 at 3:57 AM 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>
> ---
Acked-by: Masahiro Yamada <yamada.masahiro@...ionext.com>
> drivers/gpio/gpio-uniphier.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/gpio/gpio-uniphier.c b/drivers/gpio/gpio-uniphier.c
> index 0f662b2..93cdcc4 100644
> --- a/drivers/gpio/gpio-uniphier.c
> +++ b/drivers/gpio/gpio-uniphier.c
> @@ -346,7 +346,6 @@ static int uniphier_gpio_probe(struct platform_device *pdev)
> struct uniphier_gpio_priv *priv;
> struct gpio_chip *chip;
> struct irq_chip *irq_chip;
> - struct resource *regs;
> unsigned int nregs;
> u32 ngpios;
> int ret;
> @@ -370,8 +369,7 @@ static int uniphier_gpio_probe(struct platform_device *pdev)
> if (!priv)
> return -ENOMEM;
>
> - regs = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> - priv->regs = devm_ioremap_resource(dev, regs);
> + priv->regs = devm_platform_ioremap_resource(pdev, 0);
> if (IS_ERR(priv->regs))
> return PTR_ERR(priv->regs);
>
> --
> 1.9.1
>
--
Best Regards
Masahiro Yamada
Powered by blists - more mailing lists