Skip to content

Commit 92d24d0

Browse files
Ye Xingchenandersson
authored andcommitted
remoteproc: qcom: wcnss: 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 5b2b675 commit 92d24d0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/remoteproc/qcom_wcnss.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,6 @@ static int wcnss_probe(struct platform_device *pdev)
536536
const char *fw_name = WCNSS_FIRMWARE_NAME;
537537
const struct wcnss_data *data;
538538
struct qcom_wcnss *wcnss;
539-
struct resource *res;
540539
struct rproc *rproc;
541540
void __iomem *mmio;
542541
int ret;
@@ -574,8 +573,7 @@ static int wcnss_probe(struct platform_device *pdev)
574573

575574
mutex_init(&wcnss->iris_lock);
576575

577-
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "pmu");
578-
mmio = devm_ioremap_resource(&pdev->dev, res);
576+
mmio = devm_platform_ioremap_resource_byname(pdev, "pmu");
579577
if (IS_ERR(mmio)) {
580578
ret = PTR_ERR(mmio);
581579
goto free_rproc;

0 commit comments

Comments
 (0)