drm/i915: Fix unintended recursion in ironlake_disable_rc6
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 24 Feb 2011 09:42:52 +0000 (09:42 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 24 Feb 2011 17:16:43 +0000 (17:16 +0000)
After disabling, we're meant to teardown the bo used for the contexts,
not recurse into ourselves again and preventing module unload.

Reported-and-tested-by: Ben Widawsky <bwidawsk@gmail.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_display.c

index 9ca1bb2554fc2e305cc885d9a6b46642d5729aa4..e79b25bbee6c49474db0fd54e702fd635805dccc 100644 (file)
@@ -6575,7 +6575,7 @@ static void ironlake_disable_rc6(struct drm_device *dev)
                POSTING_READ(RSTDBYCTL);
        }
 
-       ironlake_disable_rc6(dev);
+       ironlake_teardown_rc6(dev);
 }
 
 static int ironlake_setup_rc6(struct drm_device *dev)