Message ID | e1458683-1270-4b9f-afdb-2f0112d66245@web.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | drm/arcpgu: Use devm_platform_get_and_ioremap_resource() in arcpgu_load() | expand |
diff --git a/drivers/gpu/drm/tiny/arcpgu.c b/drivers/gpu/drm/tiny/arcpgu.c index 4f8f3172379e..29929f093d55 100644 --- a/drivers/gpu/drm/tiny/arcpgu.c +++ b/drivers/gpu/drm/tiny/arcpgu.c @@ -268,8 +268,7 @@ static int arcpgu_load(struct arcpgu_drm_private *arcpgu) drm->mode_config.max_height = 1080; drm->mode_config.funcs = &arcpgu_drm_modecfg_funcs; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - arcpgu->regs = devm_ioremap_resource(&pdev->dev, res); + arcpgu->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(arcpgu->regs)) return PTR_ERR(arcpgu->regs);