diff options
author | Dave Airlie <airlied@linux.ie> | 2009-09-15 06:21:11 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2009-09-15 19:15:19 -0400 |
commit | 42dea5ddb56fe10e1d9a7840ddcb1df97a208a99 (patch) | |
tree | d267c48537041780999ea26b9423d8dcb6662d51 /drivers/gpu | |
parent | 48e113e516a94ac9622a8326c4de670beb3366e6 (diff) |
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 <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_display.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
365 | return ret; | 365 | return ret; |
366 | } | 366 | } |
367 | drm_mode_connector_update_edid_property(&radeon_connector->base, NULL); | 367 | drm_mode_connector_update_edid_property(&radeon_connector->base, NULL); |
368 | return -1; | 368 | return 0; |
369 | } | 369 | } |
370 | 370 | ||
371 | static int radeon_ddc_dump(struct drm_connector *connector) | 371 | static int radeon_ddc_dump(struct drm_connector *connector) |