File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
drivers/gpu/drm/amd/amdgpu Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -421,6 +421,11 @@ static int dce_virtual_sw_init(void *handle)
421
421
static int dce_virtual_sw_fini (void * handle )
422
422
{
423
423
struct amdgpu_device * adev = (struct amdgpu_device * )handle ;
424
+ int i = 0 ;
425
+
426
+ for (i = 0 ; i < adev -> mode_info .num_crtc ; i ++ )
427
+ if (adev -> mode_info .crtcs [i ])
428
+ hrtimer_cancel (& adev -> mode_info .crtcs [i ]-> vblank_timer );
424
429
425
430
kfree (adev -> mode_info .bios_hardcoded_edid );
426
431
@@ -480,13 +485,6 @@ static int dce_virtual_hw_init(void *handle)
480
485
481
486
static int dce_virtual_hw_fini (void * handle )
482
487
{
483
- struct amdgpu_device * adev = (struct amdgpu_device * )handle ;
484
- int i = 0 ;
485
-
486
- for (i = 0 ; i < adev -> mode_info .num_crtc ; i ++ )
487
- if (adev -> mode_info .crtcs [i ])
488
- hrtimer_cancel (& adev -> mode_info .crtcs [i ]-> vblank_timer );
489
-
490
488
return 0 ;
491
489
}
492
490
You can’t perform that action at this time.
0 commit comments