Skip to content

Commit d7f4679

Browse files
Yang Liwilldeacon
authored andcommitted
perf: arm: Use devm_platform_get_and_ioremap_resource()
According to commit 890cc39 ("drivers: provide 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: Yang Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent f87e911 commit d7f4679

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/perf/arm_dmc620_pmu.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,8 +655,7 @@ static int dmc620_pmu_device_probe(struct platform_device *pdev)
655655
.attr_groups = dmc620_pmu_attr_groups,
656656
};
657657

658-
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
659-
dmc620_pmu->base = devm_ioremap_resource(&pdev->dev, res);
658+
dmc620_pmu->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
660659
if (IS_ERR(dmc620_pmu->base))
661660
return PTR_ERR(dmc620_pmu->base);
662661

0 commit comments

Comments
 (0)