summaryrefslogtreecommitdiffstats
path: root/drivers/devfreq
diff options
context:
space:
mode:
authorYang Li <yang.lee@linux.alibaba.com>2023-03-28 13:38:53 +0800
committerChanwoo Choi <cw00.choi@samsung.com>2023-04-04 00:09:32 +0900
commit376b1446153ca67e7028e6b9555d9b17477f568b (patch)
tree65c064e2c12b3561a426ada39cbe8e56896a7f55 /drivers/devfreq
parentb7405e3f62d68be4cc5f4677499e1b8c13a0d216 (diff)
downloadlinux-376b1446153ca67e7028e6b9555d9b17477f568b.tar.gz
linux-376b1446153ca67e7028e6b9555d9b17477f568b.tar.bz2
linux-376b1446153ca67e7028e6b9555d9b17477f568b.zip
PM / devfreq: exynos-ppmu: Use devm_platform_get_and_ioremap_resource()
According to commit 890cc39a8799 ("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>
Diffstat (limited to 'drivers/devfreq')
-rw-r--r--drivers/devfreq/event/exynos-ppmu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/devfreq/event/exynos-ppmu.c b/drivers/devfreq/event/exynos-ppmu.c
index a443e7c42daf..896a6cc93b00 100644
--- a/drivers/devfreq/event/exynos-ppmu.c
+++ b/drivers/devfreq/event/exynos-ppmu.c
@@ -621,8 +621,7 @@ static int exynos_ppmu_parse_dt(struct platform_device *pdev,
}
/* Maps the memory mapped IO to control PPMU register */
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- base = devm_ioremap_resource(dev, res);
+ base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
if (IS_ERR(base))
return PTR_ERR(base);