File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -253,7 +253,6 @@ static int arcpgu_load(struct arcpgu_drm_private *arcpgu)
253
253
struct device_node * encoder_node = NULL , * endpoint_node = NULL ;
254
254
struct drm_connector * connector = NULL ;
255
255
struct drm_device * drm = & arcpgu -> drm ;
256
- struct resource * res ;
257
256
int ret ;
258
257
259
258
arcpgu -> clk = devm_clk_get (drm -> dev , "pxlclk" );
@@ -270,8 +269,7 @@ static int arcpgu_load(struct arcpgu_drm_private *arcpgu)
270
269
drm -> mode_config .max_height = 1080 ;
271
270
drm -> mode_config .funcs = & arcpgu_drm_modecfg_funcs ;
272
271
273
- res = platform_get_resource (pdev , IORESOURCE_MEM , 0 );
274
- arcpgu -> regs = devm_ioremap_resource (& pdev -> dev , res );
272
+ arcpgu -> regs = devm_platform_ioremap_resource (pdev , 0 );
275
273
if (IS_ERR (arcpgu -> regs ))
276
274
return PTR_ERR (arcpgu -> regs );
277
275
You can’t perform that action at this time.
0 commit comments