From: Ville Syrjälä Date: Thu, 3 Dec 2015 21:14:15 +0000 (+0200) Subject: drm/sti: Drop bogus drm_mode_sort() call X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d0b414216f907d38cd26810a5dfc23fe9a5c8254;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm/sti: Drop bogus drm_mode_sort() call sti seems confused about which mode list is used in its .get_modes() hook. It adds the modes to the probed_modes list (as is appropriate) but then for some reason it tries to sort the old mode list. Just drop the sorting since it does nothing, and let the probe helper do its thing. It will sort the final mode list after merging in the modes from the probed_modes list and validating them. Cc: Benjamin Gaignard Cc: Vincent Abriou Signed-off-by: Ville Syrjälä Signed-off-by: Daniel Vetter Link: http://patchwork.freedesktop.org/patch/msgid/1449177255-9515-8-git-send-email-ville.syrjala@linux.intel.com --- diff --git a/drivers/gpu/drm/sti/sti_hda.c b/drivers/gpu/drm/sti/sti_hda.c index d735daccd458..49cce833f2c8 100644 --- a/drivers/gpu/drm/sti/sti_hda.c +++ b/drivers/gpu/drm/sti/sti_hda.c @@ -543,8 +543,6 @@ static int sti_hda_connector_get_modes(struct drm_connector *connector) count++; } - drm_mode_sort(&connector->modes); - return count; }