drm/nouveau/drm/nouveau: Fix runtime PM leak in nv50_disp_atomic_commit()
authorLyude Paul <lyude@redhat.com>
Thu, 12 Jul 2018 17:02:53 +0000 (13:02 -0400)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 16 Jul 2018 07:59:59 +0000 (17:59 +1000)
commite5d54f1935722f83df7619f3978f774c2b802cd8
tree917758233914cd544732b72cd01bb0a18e5301d5
parent37afe55b4ae0600deafe7c0e0e658593c4754f1b
drm/nouveau/drm/nouveau: Fix runtime PM leak in nv50_disp_atomic_commit()

A CRTC being enabled doesn't mean it's on! It doesn't even necessarily
mean it's being used. This fixes runtime PM leaks on the P50 I've got
next to me.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/dispnv50/disp.c