diff mbox

[06/37] drm/i915: Only print "nothing to do" debug message as required.

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

Commit Message

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

Patch

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 979c628..3ee91c8 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -1233,10 +1233,11 @@  static void intel_update_fbc(struct drm_crtc *crtc,
 	return;
 
 out_disable:
-	DRM_DEBUG_KMS("unsupported config, disabling FBC\n");
 	/* Multiple disables should be harmless */
-	if (dev_priv->display.fbc_enabled(crtc))
+	if (dev_priv->display.fbc_enabled(crtc)) {
+		DRM_DEBUG_KMS("unsupported config, disabling FBC\n");
 		dev_priv->display.disable_fbc(dev);
+	}
 }
 
 static int