drm/vmwgfx: Fix kms preferred mode sorting
authorThomas Hellstrom <thellstrom@vmware.com>
Mon, 29 Jun 2015 19:59:58 +0000 (12:59 -0700)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 5 Aug 2015 12:01:11 +0000 (14:01 +0200)
commitf6b05004538ab0933c7527f10a2a6ed88c620f99
tree1d6af79077b60f5d0768be44b449772f077b1333
parent352b20dc51488b264abe6b9755395c63c90e807b
drm/vmwgfx: Fix kms preferred mode sorting

The preferred mode typically didn't end up first, since the function
drm_mode_connector_list_update() reordered the modes.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c