drm: Add probed modes in probe order
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 31 May 2013 12:17:07 +0000 (12:17 +0000)
committerDave Airlie <airlied@redhat.com>
Mon, 10 Jun 2013 22:35:04 +0000 (08:35 +1000)
Keeping the modes in the same order as we probe them makes it a bit
easier to track what's happening.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc.c

index 44c3421899bb5ab337dd281a7a66873242521377..3385b5cb084f044795508a8bf6dccca41339df27 100644 (file)
@@ -680,7 +680,7 @@ EXPORT_SYMBOL(drm_crtc_cleanup);
 void drm_mode_probed_add(struct drm_connector *connector,
                         struct drm_display_mode *mode)
 {
-       list_add(&mode->head, &connector->probed_modes);
+       list_add_tail(&mode->head, &connector->probed_modes);
 }
 EXPORT_SYMBOL(drm_mode_probed_add);