Skip to content

Commit 376b144

Browse files
Yang Lichanwoochoi
authored andcommitted
PM / devfreq: exynos-ppmu: 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 <yang.lee@linux.alibaba.com> Reviewed-by: Andi Shyti <andi.shyti@kernel.org> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
1 parent b7405e3 commit 376b144

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/devfreq/event/exynos-ppmu.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,8 +621,7 @@ static int exynos_ppmu_parse_dt(struct platform_device *pdev,
621621
}
622622

623623
/* Maps the memory mapped IO to control PPMU register */
624-
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
625-
base = devm_ioremap_resource(dev, res);
624+
base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
626625
if (IS_ERR(base))
627626
return PTR_ERR(base);
628627

0 commit comments

Comments
 (0)