drm/edid: When checking duplicate standard modes, walked the probed list
Adam Jackson [Fri, 9 Apr 2010 16:52:49 +0000 (16:52 +0000)]
... and not the global list.

Signed-off-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>

drivers/gpu/drm/drm_edid.c

index 0f8c063..df7a1ab 100644 (file)
@@ -847,7 +847,7 @@ drm_mode_std(struct drm_connector *connector, struct edid *edid,
         * instead.  This way we don't have to guess at interlace or
         * reduced blanking.
         */
-       list_for_each_entry(m, &connector->modes, head)
+       list_for_each_entry(m, &connector->probed_modes, head)
                if (m->hdisplay == hsize && m->vdisplay == vsize &&
                    drm_mode_vrefresh(m) == vrefresh_rate)
                        return NULL;