File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
drivers/gpu/drm/atmel-hlcdc Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -355,6 +355,7 @@ int atmel_hlcdc_crtc_create(struct drm_device *dev)
355
355
planes -> overlays [i ]-> base .possible_crtcs = 1 << crtc -> id ;
356
356
357
357
drm_crtc_helper_add (& crtc -> base , & lcdc_crtc_helper_funcs );
358
+ drm_crtc_vblank_reset (& crtc -> base );
358
359
359
360
dc -> crtc = & crtc -> base ;
360
361
Original file line number Diff line number Diff line change @@ -313,20 +313,20 @@ static int atmel_hlcdc_dc_load(struct drm_device *dev)
313
313
314
314
pm_runtime_enable (dev -> dev );
315
315
316
- ret = atmel_hlcdc_dc_modeset_init (dev );
316
+ ret = drm_vblank_init (dev , 1 );
317
317
if (ret < 0 ) {
318
- dev_err (dev -> dev , "failed to initialize mode setting \n" );
318
+ dev_err (dev -> dev , "failed to initialize vblank \n" );
319
319
goto err_periph_clk_disable ;
320
320
}
321
321
322
- drm_mode_config_reset (dev );
323
-
324
- ret = drm_vblank_init (dev , 1 );
322
+ ret = atmel_hlcdc_dc_modeset_init (dev );
325
323
if (ret < 0 ) {
326
- dev_err (dev -> dev , "failed to initialize vblank \n" );
324
+ dev_err (dev -> dev , "failed to initialize mode setting \n" );
327
325
goto err_periph_clk_disable ;
328
326
}
329
327
328
+ drm_mode_config_reset (dev );
329
+
330
330
pm_runtime_get_sync (dev -> dev );
331
331
ret = drm_irq_install (dev , dc -> hlcdc -> irq );
332
332
pm_runtime_put_sync (dev -> dev );
You can’t perform that action at this time.
0 commit comments