drm: Don't try and disable an encoder that was never enabled
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 6 Dec 2010 11:24:07 +0000 (11:24 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 7 Dec 2010 23:33:02 +0000 (09:33 +1000)
commit541cc966915b6756e54c20eebe60ae957afdb537
treef8e24751b5545577e1b480424e1514b5cfc4e042
parentea5d552c73707645c53d42e8a71c9a4d9cbb85c1
drm: Don't try and disable an encoder that was never enabled

Prevents code that assumes that the encoder is active when asked to be
disabled from dying a horrible death.

Reported-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc_helper.c