projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3abe84e
)
pinctrl: qcom: Use devm_platform_get_and_ioremap_resource()
author
Md Sadre Alam
<quic_mdalam@quicinc.com>
Mon, 6 Mar 2023 14:46:41 +0000
(20:16 +0530)
committer
Linus Walleij
<linus.walleij@linaro.org>
Thu, 9 Mar 2023 13:50:26 +0000
(14:50 +0100)
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>
drivers/pinctrl/qcom/pinctrl-msm.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/qcom/pinctrl-msm.c
b/drivers/pinctrl/qcom/pinctrl-msm.c
index
daeb79a
..
e25e7b5
100644
(file)
--- 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]);