* [PATCH] remoteproc: qcom: q6v5: use devm_platform_ioremap_resource_byname()
@ 2023-03-22 3:15 ye.xingchen
2023-07-15 22:13 ` Bjorn Andersson
0 siblings, 1 reply; 2+ messages in thread
From: ye.xingchen @ 2023-03-22 3:15 UTC (permalink / raw)
To: andersson
Cc: agross, konrad.dybcio, mathieu.poirier, linux-arm-msm,
linux-remoteproc, linux-kernel
From: Ye Xingchen <ye.xingchen@zte.com.cn>
Convert platform_get_resource_byname(),devm_ioremap_resource() to a single
call to devm_platform_ioremap_resource_byname(), as this is exactly what
this function does.
Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn>
---
drivers/remoteproc/qcom_q6v5_wcss.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/remoteproc/qcom_q6v5_wcss.c b/drivers/remoteproc/qcom_q6v5_wcss.c
index ba24d745b2d6..dadb9dccd541 100644
--- a/drivers/remoteproc/qcom_q6v5_wcss.c
+++ b/drivers/remoteproc/qcom_q6v5_wcss.c
@@ -837,8 +837,7 @@ static int q6v5_wcss_init_mmio(struct q6v5_wcss *wcss,
return -ENOMEM;
if (wcss->version == WCSS_IPQ8074) {
- res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "rmb");
- wcss->rmb_base = devm_ioremap_resource(&pdev->dev, res);
+ wcss->rmb_base = devm_platform_ioremap_resource_byname(pdev, "rmb");
if (IS_ERR(wcss->rmb_base))
return PTR_ERR(wcss->rmb_base);
}
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] remoteproc: qcom: q6v5: use devm_platform_ioremap_resource_byname()
2023-03-22 3:15 [PATCH] remoteproc: qcom: q6v5: use devm_platform_ioremap_resource_byname() ye.xingchen
@ 2023-07-15 22:13 ` Bjorn Andersson
0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Andersson @ 2023-07-15 22:13 UTC (permalink / raw)
To: ye.xingchen
Cc: agross, konrad.dybcio, mathieu.poirier, linux-arm-msm,
linux-remoteproc, linux-kernel
On Wed, 22 Mar 2023 11:15:14 +0800, ye.xingchen@zte.com.cn wrote:
> Convert platform_get_resource_byname(),devm_ioremap_resource() to a single
> call to devm_platform_ioremap_resource_byname(), as this is exactly what
> this function does.
>
>
Applied, thanks!
[1/1] remoteproc: qcom: q6v5: use devm_platform_ioremap_resource_byname()
commit: 5b2b675adf8f302f89ad2624bc4ad2327b669ec2
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-15 22:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-22 3:15 [PATCH] remoteproc: qcom: q6v5: use devm_platform_ioremap_resource_byname() ye.xingchen
2023-07-15 22:13 ` Bjorn Andersson
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).