diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2015-02-09 19:33:05 +0000 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-02-13 23:28:15 +0100 |
commit | c57e3551225977c9b5ed3b81a2be2a0b8f6f4503 (patch) | |
tree | 98311f240b1c18094277ca1d71f99ef3cfa26596 /drivers/gpu/drm/i915/intel_pm.c | |
parent | e35fef211bab1a69da1b392c3ece906e287ed6e4 (diff) | |
download | lwn-c57e3551225977c9b5ed3b81a2be2a0b8f6f4503.tar.gz lwn-c57e3551225977c9b5ed3b81a2be2a0b8f6f4503.zip |
drm/i915: Support not having an init clock gating function defined
When enabling new platforms, we may not have any W/A to apply,
especially that, now, a bunch of them have to be done from the ring.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_pm.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_pm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index 3c64810d6853..a3b979deeeb1 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c @@ -6386,7 +6386,8 @@ void intel_init_clock_gating(struct drm_device *dev) { struct drm_i915_private *dev_priv = dev->dev_private; - dev_priv->display.init_clock_gating(dev); + if (dev_priv->display.init_clock_gating) + dev_priv->display.init_clock_gating(dev); } void intel_suspend_hw(struct drm_device *dev) |