summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon
diff options
context:
space:
mode:
authorDave Airlie2009-09-15 12:21:11 +0200
committerDave Airlie2009-09-16 01:15:19 +0200
commit42dea5ddb56fe10e1d9a7840ddcb1df97a208a99 (patch)
treed267c48537041780999ea26b9423d8dcb6662d51 /drivers/gpu/drm/radeon
parentdrm/radeon/kms: Free CS parser state tracking memory. (diff)
downloadkernel-qcow2-linux-42dea5ddb56fe10e1d9a7840ddcb1df97a208a99.tar.gz
kernel-qcow2-linux-42dea5ddb56fe10e1d9a7840ddcb1df97a208a99.tar.xz
kernel-qcow2-linux-42dea5ddb56fe10e1d9a7840ddcb1df97a208a99.zip
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/drm/radeon')
-rw-r--r--drivers/gpu/drm/radeon/radeon_display.c2
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)
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)