Skip to content

Commit b0047e5

Browse files
EmilyDeng666alexdeucher
authored andcommitted
drm/amdgpu: Remove warning for virtual_display
Remove the virtual_display warning in drm_crtc_vblank_off when dev->num_crtcs is null. Reviewed-by: Andrey Grodzovsky <[email protected]> Signed-off-by: Emily.Deng <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 0224b27 commit b0047e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/gpu/drm/amd/amdgpu/dce_virtual.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,10 @@ static void dce_virtual_crtc_commit(struct drm_crtc *crtc)
174174
static void dce_virtual_crtc_disable(struct drm_crtc *crtc)
175175
{
176176
struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc);
177+
struct drm_device *dev = crtc->dev;
177178

178-
drm_crtc_vblank_off(crtc);
179+
if (dev->num_crtcs)
180+
drm_crtc_vblank_off(crtc);
179181

180182
amdgpu_crtc->enabled = false;
181183
amdgpu_crtc->pll_id = ATOM_PPLL_INVALID;

0 commit comments

Comments
 (0)