drm/arc: Use devm_platform_ioremap_resource()
Subsystems (3)
PATCH 1/1 drm/arc: Use devm_platform_ioremap_resource()
Convert platform_get_resource(),devm_ioremap_resource() to a single call to devm_platform_ioremap_resource(), as this is exactly what this function does.
Signed-off-by Yang Li <[email protected]>
--- drivers/gpu/drm/tiny/arcpgu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/tiny/arcpgu.c +1 -3
@@ -251,7 +251,6 @@ static int arcpgu_load(struct arcpgu_drm_private *arcpgu)struct device_node *encoder_node =NULL , *endpoint_node =NULL ;struct drm_connector *connector =NULL ;struct drm_device *drm = &arcpgu->drm; -struct resource *res;int ret; arcpgu->clk =devm_clk_get (drm->dev,"pxlclk" );
@@ -268,8 +267,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_ioremap_resource (pdev,0 );if (IS_ERR (arcpgu->regs))return PTR_ERR (arcpgu->regs);
Signature · 1 line
2.20.1.7.g153144c