[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <fc31ef8a-f39c-21df-2778-fe6a5709ea73@gmail.com>
Date: Tue, 12 Mar 2019 12:14:02 +0100
From: Matthias Brugger <matthias.bgg@...il.com>
To: "Enrico Weigelt, metux IT consult" <info@...ux.net>,
linux-kernel@...r.kernel.org
Cc: linus.walleij@...aro.org, bgolaszewski@...libre.com,
andrew@...id.au, f.fainelli@...il.com, sbranden@...adcom.com,
bcm-kernel-feedback-list@...adcom.com, hoan@...amperecomputing.com,
orsonzhai@...il.com, baolin.wang@...aro.org, zhang.lyra@...il.com,
keguang.zhang@...il.com, vz@...ia.com, thierry.reding@...il.com,
grygorii.strashko@...com, ssantosh@...nel.org, khilman@...nel.org,
robert.jarzmik@...e.fr, yamada.masahiro@...ionext.com,
jun.nie@...aro.org, shawnguo@...nel.org,
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 20/42] drivers: gpio: mt7621: use
devm_platform_ioremap_resource()
On 11/03/2019 19:54, Enrico Weigelt, metux IT consult 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-mt7621.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
Reviewed-by: Matthias Brugger <matthias.bgg@...il.com>
>
> diff --git a/drivers/gpio/gpio-mt7621.c b/drivers/gpio/gpio-mt7621.c
> index 74401e0..79654fb 100644
> --- a/drivers/gpio/gpio-mt7621.c
> +++ b/drivers/gpio/gpio-mt7621.c
> @@ -293,7 +293,6 @@ struct mtk {
> static int
> mediatek_gpio_probe(struct platform_device *pdev)
> {
> - struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> struct device *dev = &pdev->dev;
> struct device_node *np = dev->of_node;
> struct mtk *mtk;
> @@ -304,7 +303,7 @@ struct mtk {
> if (!mtk)
> return -ENOMEM;
>
> - mtk->base = devm_ioremap_resource(dev, res);
> + mtk->base = devm_platform_ioremap_resource(pdev, 0);
> if (IS_ERR(mtk->base))
> return PTR_ERR(mtk->base);
>
>
Powered by blists - more mailing lists