From: Neil Armstrong <narmstrong@baylibre.com>
To: YueHaibing <yuehaibing@huawei.com>,
linus.walleij@linaro.org, manivannan.sadhasivam@linaro.org,
afaerber@suse.de, f.fainelli@gmail.com, rjui@broadcom.com,
sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com,
jesper.nilsson@axis.com, lars.persson@axis.com,
ludovic.desroches@microchip.com, nicolas.ferre@microchip.com,
alexandre.belloni@bootlin.com, baruch@tkos.co.il
Cc: linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-arm-kernel@axis.com,
linux-oxnas@groups.io, linux-renesas-soc@vger.kernel.org,
linux-arm-msm@vger.kernel.org, linux-tegra@vger.kernel.org,
vz@mleia.com, geert+renesas@glider.be, daniel@zonque.org,
haojian.zhuang@gmail.com, wens@csie.org,
thierry.reding@gmail.com, jonathanh@nvidia.com,
agross@kernel.org
Subject: Re: [PATCH -next 15/30] pinctrl: oxnas: use devm_platform_ioremap_resource() to simplify code
Date: Thu, 17 Oct 2019 14:50:11 +0200 [thread overview]
Message-ID: <2b343ef8-45ac-e7a0-91cc-879980593b27@baylibre.com> (raw)
In-Reply-To: <20191017122640.22976-16-yuehaibing@huawei.com>
On 17/10/2019 14:26, YueHaibing wrote:
> Use devm_platform_ioremap_resource() to simplify the code a bit.
> This is detected by coccinelle.
>
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> ---
> drivers/pinctrl/pinctrl-oxnas.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/pinctrl/pinctrl-oxnas.c b/drivers/pinctrl/pinctrl-oxnas.c
> index 40dc125..674b7b5 100644
> --- a/drivers/pinctrl/pinctrl-oxnas.c
> +++ b/drivers/pinctrl/pinctrl-oxnas.c
> @@ -1196,7 +1196,6 @@ static int oxnas_gpio_probe(struct platform_device *pdev)
> struct oxnas_gpio_bank *bank;
> unsigned int id, ngpios;
> int irq, ret;
> - struct resource *res;
> struct gpio_irq_chip *girq;
>
> if (of_parse_phandle_with_fixed_args(np, "gpio-ranges",
> @@ -1220,8 +1219,7 @@ static int oxnas_gpio_probe(struct platform_device *pdev)
>
> bank = &oxnas_gpio_banks[id];
>
> - res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> - bank->reg_base = devm_ioremap_resource(&pdev->dev, res);
> + bank->reg_base = devm_platform_ioremap_resource(pdev, 0);
> if (IS_ERR(bank->reg_base))
> return PTR_ERR(bank->reg_base);
>
>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
next prev parent reply other threads:[~2019-10-17 12:50 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-17 12:26 [PATCH -next 00/30] pinctrl: use devm_platform_ioremap_resource() to simplify code YueHaibing
2019-10-17 12:26 ` [PATCH -next 01/30] pinctrl: pxa25x: " YueHaibing
2019-11-04 0:18 ` Linus Walleij
2019-11-04 1:17 ` Yuehaibing
2019-11-04 14:26 ` [PATCH v2] pinctrl: " YueHaibing
2019-11-05 14:34 ` Linus Walleij
2019-10-17 12:26 ` [PATCH -next 02/30] pinctrl: pxa27x: " YueHaibing
2019-10-17 12:26 ` [PATCH -next 03/30] pinctrl: cygnus-mux: " YueHaibing
2019-10-17 12:26 ` [PATCH -next 04/30] pinctrl: pic32: " YueHaibing
2019-10-17 12:26 ` [PATCH -next 05/30] pinctrl: nsp-gpio: " YueHaibing
2019-10-17 12:26 ` [PATCH -next 06/30] pinctrl: nsp: " YueHaibing
2019-10-17 12:26 ` [PATCH -next 07/30] pinctrl: ns2: " YueHaibing
2019-10-17 12:26 ` [PATCH -next 08/30] pinctrl: bcm281xx: " YueHaibing
2019-10-17 12:26 ` [PATCH -next 09/30] pinctrl: sunxi: " YueHaibing
2019-10-17 12:26 ` [PATCH -next 10/30] pinctrl: tegra: " YueHaibing
2019-10-17 12:52 ` Thierry Reding
2019-10-17 12:26 ` [PATCH -next 11/30] pinctrl: msm: " YueHaibing
2019-10-18 17:06 ` Bjorn Andersson
2019-10-17 12:26 ` [PATCH -next 12/30] pinctrl: spear: " YueHaibing
2019-10-17 12:26 ` [PATCH -next 13/30] pinctrl: zte: " YueHaibing
2019-10-17 12:26 ` [PATCH -next 14/30] pinctrl: at91: " YueHaibing
2019-10-17 12:26 ` [PATCH -next 15/30] pinctrl: oxnas: " YueHaibing
2019-10-17 12:50 ` Neil Armstrong [this message]
2019-10-17 12:26 ` [PATCH -next 16/30] pinctrl: pistachio: " YueHaibing
2019-10-17 12:26 ` [PATCH -next 17/30] pinctrl: lpc18xx: " YueHaibing
2019-10-17 12:26 ` [PATCH -next 18/30] pinctrl: da850-pupd: " YueHaibing
2019-10-17 12:26 ` [PATCH -next 19/30] pinctrl: tb10x: " YueHaibing
2019-10-17 12:26 ` [PATCH -next 20/30] pinctrl: u300: " YueHaibing
2019-10-17 12:26 ` [PATCH -next 21/30] pinctrl: vt8500: " YueHaibing
2019-10-17 12:26 ` [PATCH -next 22/30] pinctrl: xway: " YueHaibing
2019-10-17 12:26 ` [PATCH -next 23/30] pinctrl: rza2: " YueHaibing
2019-10-17 12:26 ` [PATCH -next 24/30] pinctrl: digicolor: " YueHaibing
2019-10-17 12:26 ` [PATCH -next 25/30] pinctrl: coh901: " YueHaibing
2019-10-17 12:26 ` [PATCH -next 26/30] pinctrl: bm1880: " YueHaibing
2019-10-17 13:00 ` Manivannan Sadhasivam
2019-10-17 12:26 ` [PATCH -next 27/30] pinctrl: artpec6: " YueHaibing
2019-10-17 12:51 ` Jesper Nilsson
2019-10-17 12:26 ` [PATCH -next 28/30] pinctrl: actions: " YueHaibing
2019-10-17 12:59 ` Manivannan Sadhasivam
2019-10-17 12:26 ` [PATCH -next 29/30] pinctrl: at91-pio4: " YueHaibing
2019-10-17 12:26 ` [PATCH -next 30/30] pinctrl: iproc: " YueHaibing
2019-10-17 13:09 ` [PATCH -next 00/30] pinctrl: " Alexandre Belloni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2b343ef8-45ac-e7a0-91cc-879980593b27@baylibre.com \
--to=narmstrong@baylibre.com \
--cc=afaerber@suse.de \
--cc=agross@kernel.org \
--cc=alexandre.belloni@bootlin.com \
--cc=baruch@tkos.co.il \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=daniel@zonque.org \
--cc=f.fainelli@gmail.com \
--cc=geert+renesas@glider.be \
--cc=haojian.zhuang@gmail.com \
--cc=jesper.nilsson@axis.com \
--cc=jonathanh@nvidia.com \
--cc=lars.persson@axis.com \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@axis.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-oxnas@groups.io \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=ludovic.desroches@microchip.com \
--cc=manivannan.sadhasivam@linaro.org \
--cc=nicolas.ferre@microchip.com \
--cc=rjui@broadcom.com \
--cc=sbranden@broadcom.com \
--cc=thierry.reding@gmail.com \
--cc=vz@mleia.com \
--cc=wens@csie.org \
--cc=yuehaibing@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).