drm/i915: driver.suspend and .resume are always set
So we can remove the repeated initialisation. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
b8f7ab1788
commit
4a19d02e0a
|
@ -700,11 +700,6 @@ static int __init i915_init(void)
|
||||||
driver.driver_features &= ~DRIVER_MODESET;
|
driver.driver_features &= ~DRIVER_MODESET;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!(driver.driver_features & DRIVER_MODESET)) {
|
|
||||||
driver.suspend = i915_suspend;
|
|
||||||
driver.resume = i915_resume;
|
|
||||||
}
|
|
||||||
|
|
||||||
return drm_init(&driver);
|
return drm_init(&driver);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue