drm/cirrus: use drm_set_preferred_mode
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 11 Oct 2013 08:01:09 +0000 (10:01 +0200)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Wed, 7 May 2014 06:30:55 +0000 (15:30 +0900)
commit46d89f8b01028137df6f2b50c1407423b54e36f1
treedea5032a532be74be4c6c32ac8849554ea176944
parent0c6b7994260e8050f7da8feea127fa4bf5e77d77
drm/cirrus: use drm_set_preferred_mode

commit 121a6a17439b000b9699c3fa876636db20fa4107 upstream.

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/gpu/drm/cirrus/cirrus_mode.c