[Intel-gfx] [PATCH 23/37] drm: Propagate failure from drm_setup_crtcs()
Chris Wilson
chris at chris-wilson.co.uk
Wed Mar 10 23:45:10 CET 2010
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Dave Airlie <airlied at redhat.com>
---
drivers/gpu/drm/drm_crtc_helper.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
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);
--
1.7.0
More information about the Intel-gfx
mailing list