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: Keith Packard <keithp@keithp.com> Tested-by: Justin P. Mattock <justinmattock@gmail.com>
This commit is contained in:
parent
c3613de92e
commit
92b79f4322
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue