提交 c57e3551 编写于 作者: D Damien Lespiau 提交者: Daniel Vetter

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: NDamien Lespiau <damien.lespiau@intel.com>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 e35fef21
...@@ -6386,7 +6386,8 @@ void intel_init_clock_gating(struct drm_device *dev) ...@@ -6386,7 +6386,8 @@ void intel_init_clock_gating(struct drm_device *dev)
{ {
struct drm_i915_private *dev_priv = dev->dev_private; 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) void intel_suspend_hw(struct drm_device *dev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册