Skip to content

Commit

Permalink
drm/i915: Cannot set clock gating under UMS
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Keith Packard committed Aug 15, 2011
1 parent c3613de commit 92b79f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/i915/i915_suspend.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 92b79f4

Please sign in to comment.