diff options
author | Md Sadre Alam <quic_mdalam@quicinc.com> | 2023-03-06 17:46:41 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2023-03-09 16:50:26 +0300 |
commit | 713834cf2cd47cfdb79da523c8b243fca71615f5 (patch) | |
tree | 785a3e8e6c6a6a108d8246725bb98dae763fdeb9 /drivers/pinctrl/qcom | |
parent | 3abe84ea065128f5ad1025f2176156dd04b777ee (diff) | |
download | linux-713834cf2cd47cfdb79da523c8b243fca71615f5.tar.xz |
pinctrl: qcom: Use devm_platform_get_and_ioremap_resource()
Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
Link: https://lore.kernel.org/r/20230306144641.21955-1-quic_mdalam@quicinc.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/qcom')
-rw-r--r-- | drivers/pinctrl/qcom/pinctrl-msm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c index daeb79a9a602..e25e7b5cdda2 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm.c +++ b/drivers/pinctrl/qcom/pinctrl-msm.c @@ -1480,8 +1480,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_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(pctrl->regs[0])) return PTR_ERR(pctrl->regs[0]); |