Skip to content

Commit

Permalink
drm/radeon/kms: we should return 0 when we have no modes not -1.
Browse files Browse the repository at this point in the history
This fixes my monitor with broken EDID so it at least get 800x600.

Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Dave Airlie committed Sep 15, 2009
1 parent 48e113e commit 42dea5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/radeon/radeon_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 42dea5d

Please sign in to comment.