drm/i915: Use IS_HSW_ULT() in HSW CDCLK clock read-out
authorDamien Lespiau <damien.lespiau@intel.com>
Wed, 1 Oct 2014 19:04:16 +0000 (20:04 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 24 Oct 2014 14:33:57 +0000 (16:33 +0200)
hsw_get_cdclk_freq() is really just HSW, so we can use IS_HSW_ULT()
instead of IS_ULT() there.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ddi.c

index a151de7d13cdfd709005c34879b4f170ee0de395..cb5367c6f95a989554f71ae2540945c09895e5b9 100644 (file)
@@ -1291,7 +1291,7 @@ static int hsw_get_cdclk_freq(struct drm_i915_private *dev_priv)
                return 450000;
        else if (freq == LCPLL_CLK_FREQ_450)
                return 450000;
-       else if (IS_ULT(dev))
+       else if (IS_HSW_ULT(dev))
                return 337500;
        else
                return 540000;