drm/radeon/kms: we should return 0 when we have no modes not -1.
authorDave Airlie <airlied@linux.ie>
Tue, 15 Sep 2009 10:21:11 +0000 (20:21 +1000)
committerDave Airlie <airlied@linux.ie>
Tue, 15 Sep 2009 23:15:19 +0000 (09:15 +1000)
This fixes my monitor with broken EDID so it at least get 800x600.

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

index 9d817a62e7f1aac65d7708eb593bc57a1ec84497..22da85fe5ae7fc6feaa456f08ddbae6590aa03cd 100644 (file)
@@ -365,7 +365,7 @@ int radeon_ddc_get_modes(struct radeon_connector *radeon_connector)
                return ret;
        }
        drm_mode_connector_update_edid_property(&radeon_connector->base, NULL);
-       return -1;
+       return 0;
 }
 
 static int radeon_ddc_dump(struct drm_connector *connector)