drm/edid: fix collision between two patches breaking build
authorDave Airlie <airlied@redhat.com>
Mon, 30 Apr 2012 06:26:16 +0000 (07:26 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 30 Apr 2012 06:26:16 +0000 (07:26 +0100)
this fixes a report that the new load code needed to be updated for
ajax's validity changes.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_edid_load.c

index da9acba2dd6c7f7dc7de62361ac8e832c81eed66..48c927c37041ed7071e9a5d2b1b2a5b79c8f9184 100644 (file)
@@ -173,7 +173,7 @@ static int edid_load(struct drm_connector *connector, char *name,
        }
        memcpy(edid, fwdata, fwsize);
 
-       if (!drm_edid_block_valid(edid)) {
+       if (!drm_edid_block_valid(edid, 0)) {
                DRM_ERROR("Base block of EDID firmware \"%s\" is invalid ",
                    name);
                kfree(edid);
@@ -185,7 +185,7 @@ static int edid_load(struct drm_connector *connector, char *name,
                if (i != valid_extensions + 1)
                        memcpy(edid + (valid_extensions + 1) * EDID_LENGTH,
                            edid + i * EDID_LENGTH, EDID_LENGTH);
-               if (drm_edid_block_valid(edid + i * EDID_LENGTH))
+               if (drm_edid_block_valid(edid + i * EDID_LENGTH, i))
                        valid_extensions++;
        }