drm/i915: driver.suspend and .resume are always set
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 Dec 2010 13:31:49 +0000 (13:31 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 9 Dec 2010 19:46:22 +0000 (19:46 +0000)
So we can remove the repeated initialisation.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_drv.c

index 91a3ad2cf9426d801398080510518a6ee56e749b..ad28b21f4d033f2d735ce0d5b091abd6822590e5 100644 (file)
@@ -700,11 +700,6 @@ static int __init i915_init(void)
                driver.driver_features &= ~DRIVER_MODESET;
 #endif
 
-       if (!(driver.driver_features & DRIVER_MODESET)) {
-               driver.suspend = i915_suspend;
-               driver.resume = i915_resume;
-       }
-
        return drm_init(&driver);
 }