Skip to content

Commit

Permalink
drm/i915: driver.suspend and .resume are always set
Browse files Browse the repository at this point in the history
So we can remove the repeated initialisation.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
  • Loading branch information
Chris Wilson committed Dec 9, 2010
1 parent b8f7ab1 commit 4a19d02
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/gpu/drm/i915/i915_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 4a19d02

Please sign in to comment.