From: Dave Airlie Date: Tue, 15 Sep 2009 10:21:11 +0000 (+1000) Subject: drm/radeon/kms: we should return 0 when we have no modes not -1. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=42dea5ddb56fe10e1d9a7840ddcb1df97a208a99;p=linux-beck.git drm/radeon/kms: we should return 0 when we have no modes not -1. This fixes my monitor with broken EDID so it at least get 800x600. Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c index 9d817a62e7f1..22da85fe5ae7 100644 --- a/drivers/gpu/drm/radeon/radeon_display.c +++ b/drivers/gpu/drm/radeon/radeon_display.c @@ -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)