Skip to content

Commit 7fc7f25

Browse files
Minghao Chichanwoochoi
authored andcommitted
PM / devfreq: event: use 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: Minghao Chi <chi.minghao@zte.com.cn> Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
1 parent ad44c2f commit 7fc7f25

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/devfreq/event/exynos-nocp.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,7 @@ static int exynos_nocp_parse_dt(struct platform_device *pdev,
214214
nocp->clk = NULL;
215215

216216
/* Maps the memory mapped IO to control nocp register */
217-
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
218-
base = devm_ioremap_resource(dev, res);
217+
base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
219218
if (IS_ERR(base))
220219
return PTR_ERR(base);
221220

0 commit comments

Comments
 (0)