Skip to content

Commit 7eb1220

Browse files
Yang Lihdeller
authored andcommitted
fbdev: clps711x-fb: 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]> Signed-off-by: Helge Deller <[email protected]>
1 parent f90bd24 commit 7eb1220

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/video/fbdev/clps711x-fb.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,7 @@ static int clps711x_fb_probe(struct platform_device *pdev)
238238
info->fix.mmio_start = res->start;
239239
info->fix.mmio_len = resource_size(res);
240240

241-
res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
242-
info->screen_base = devm_ioremap_resource(dev, res);
241+
info->screen_base = devm_platform_get_and_ioremap_resource(pdev, 1, &res);
243242
if (IS_ERR(info->screen_base)) {
244243
ret = PTR_ERR(info->screen_base);
245244
goto out_fb_release;

0 commit comments

Comments
 (0)