[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191018170657.GD4500@tuxbook-pro>
Date: Fri, 18 Oct 2019 10:06:57 -0700
From: Bjorn Andersson <bjorn.andersson@...aro.org>
To: YueHaibing <yuehaibing@...wei.com>
Cc: linus.walleij@...aro.org, manivannan.sadhasivam@...aro.org,
afaerber@...e.de, f.fainelli@...il.com, rjui@...adcom.com,
sbranden@...adcom.com, bcm-kernel-feedback-list@...adcom.com,
jesper.nilsson@...s.com, lars.persson@...s.com,
ludovic.desroches@...rochip.com, nicolas.ferre@...rochip.com,
alexandre.belloni@...tlin.com, baruch@...s.co.il,
linux-arm-kernel@...ts.infradead.org, linux-gpio@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...s.com,
linux-oxnas@...ups.io, linux-renesas-soc@...r.kernel.org,
linux-arm-msm@...r.kernel.org, linux-tegra@...r.kernel.org,
vz@...ia.com, narmstrong@...libre.com, geert+renesas@...der.be,
daniel@...que.org, haojian.zhuang@...il.com, wens@...e.org,
thierry.reding@...il.com, jonathanh@...dia.com, agross@...nel.org
Subject: Re: [PATCH -next 11/30] pinctrl: msm: use
devm_platform_ioremap_resource() to simplify code
On Thu 17 Oct 05:26 PDT 2019, YueHaibing wrote:
> Use devm_platform_ioremap_resource() to simplify the code a bit.
> This is detected by coccinelle.
>
> Signed-off-by: YueHaibing <yuehaibing@...wei.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@...aro.org>
> ---
> drivers/pinctrl/qcom/pinctrl-msm.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c
> index 763da0b..62fcae9 100644
> --- a/drivers/pinctrl/qcom/pinctrl-msm.c
> +++ b/drivers/pinctrl/qcom/pinctrl-msm.c
> @@ -1150,8 +1150,7 @@ int msm_pinctrl_probe(struct platform_device *pdev,
> return PTR_ERR(pctrl->regs[i]);
> }
> } else {
> - res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> - pctrl->regs[0] = devm_ioremap_resource(&pdev->dev, res);
> + pctrl->regs[0] = devm_platform_ioremap_resource(pdev, 0);
> if (IS_ERR(pctrl->regs[0]))
> return PTR_ERR(pctrl->regs[0]);
> }
> --
> 2.7.4
>
>
Powered by blists - more mailing lists