Commit 92b79f43 authored by Keith Packard's avatar Keith Packard

drm/i915: Cannot set clock gating under UMS

The clock gating functions are only assigned under KMS, so don't try
to call them under UMS.
Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
Tested-by: default avatarJustin P. Mattock <justinmattock@gmail.com>
parent c3613de9
......@@ -871,7 +871,8 @@ int i915_restore_state(struct drm_device *dev)
}
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)) {
ironlake_enable_drps(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment