|
@@ -871,7 +871,8 @@ int i915_restore_state(struct drm_device *dev)
|
|
|
}
|
|
}
|
|
|
mutex_unlock(&dev->struct_mutex);
|
|
mutex_unlock(&dev->struct_mutex);
|
|
|
|
|
|
|
|
- intel_init_clock_gating(dev);
|
|
|
|
|
|
|
+ if (drm_core_check_feature(dev, DRIVER_MODESET))
|
|
|
|
|
+ intel_init_clock_gating(dev);
|
|
|
|
|
|
|
|
if (IS_IRONLAKE_M(dev)) {
|
|
if (IS_IRONLAKE_M(dev)) {
|
|
|
ironlake_enable_drps(dev);
|
|
ironlake_enable_drps(dev);
|