]> git.baikalelectronics.ru Git - kernel.git/commit
drm/cirrus: use drm_set_preferred_mode
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 11 Oct 2013 08:01:09 +0000 (10:01 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 6 Nov 2013 03:36:19 +0000 (13:36 +1000)
commita970dc4904f1883ceafe9ea9578c0d00443cb683
tree21f82542ba40531df4a8d882cd7a885d67e89dfd
parente70cba4c66bc963e81680995882d3fc0fdf69463
drm/cirrus: use drm_set_preferred_mode

Explicitly set 1024x768 as default mode, so the display doesn't come up
with the largest supported mode.

While being at it drop first three drm_add_modes_noedid calls.  As
drm_add_modes_noedid fills the mode list with modes from the database
*up to* the specified size it is pretty pointless to call it multiple
times with different sizes.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/cirrus/cirrus_mode.c