diff mbox

[23/37] drm: Propagate failure from drm_setup_crtcs()

Message ID 1268261124-13653-24-git-send-email-chris@chris-wilson.co.uk (mailing list archive)
State Not Applicable
Headers show

Commit Message

Chris Wilson March 10, 2010, 10:45 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c
index d36c4ca..f24f5ee 100644
--- a/drivers/gpu/drm/drm_crtc_helper.c
+++ b/drivers/gpu/drm/drm_crtc_helper.c
@@ -995,12 +995,16 @@  EXPORT_SYMBOL(drm_crtc_helper_set_config);
 
 bool drm_helper_plugged_event(struct drm_device *dev)
 {
+	int ret;
+
 	DRM_DEBUG_KMS("\n");
 
 	drm_helper_probe_connector_modes(dev, dev->mode_config.max_width,
 					 dev->mode_config.max_height);
 
-	drm_setup_crtcs(dev);
+	ret = drm_setup_crtcs(dev);
+	if (ret)
+		return false;
 
 	/* alert the driver fb layer */
 	dev->mode_config.funcs->fb_changed(dev);