Skip to content

Commit 5b2b675

Browse files
Ye Xingchenandersson
authored andcommitted
remoteproc: qcom: q6v5: use devm_platform_ioremap_resource_byname()
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent b352033 commit 5b2b675

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/remoteproc/qcom_q6v5_wcss.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -837,8 +837,7 @@ static int q6v5_wcss_init_mmio(struct q6v5_wcss *wcss,
837837
return -ENOMEM;
838838

839839
if (wcss->version == WCSS_IPQ8074) {
840-
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "rmb");
841-
wcss->rmb_base = devm_ioremap_resource(&pdev->dev, res);
840+
wcss->rmb_base = devm_platform_ioremap_resource_byname(pdev, "rmb");
842841
if (IS_ERR(wcss->rmb_base))
843842
return PTR_ERR(wcss->rmb_base);
844843
}

0 commit comments

Comments
 (0)