drm: prune modes when output is disconnected.
authorAdam Jackson <ajax@redhat.com>
Tue, 8 Sep 2009 01:51:46 +0000 (11:51 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 8 Sep 2009 01:51:46 +0000 (11:51 +1000)
commit620f37811dcc9e0f97ee79fbf8908fcc097deaee
tree3622ded2c5a7f95bf0113097eb7d1a736a616d7c
parent1ecff1eb0b83efa85be5b54c958e831e37f993f3
drm: prune modes when output is disconnected.

When an output was disconnected, its mode list would remain.  If you later
plugged into a sink with no EDID (projector, etc), you'd inherit the mode
list from the old sink, which is not what you want.

taken from Fedora kernel

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc_helper.c