From: Jani Nikula Date: Tue, 22 Jan 2019 08:23:04 +0000 (+0200) Subject: drm/i915/tv: only call intel_tv_init() on platforms that might have TV X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d6521463897bc673ed929e87a884b7a6ef641f64;p=openwrt%2Fstaging%2Fblogic.git drm/i915/tv: only call intel_tv_init() on platforms that might have TV With most platforms not having TV support, only call intel_tv_init() on platforms that might actually have TV, specifically gens 3 and 4. This puts intel_tv_init() more in line with the rest of the outputs, and makes it slightly easier for the uninitiated to figure out which platforms actually have what. Reviewed-by: Ville Syrjälä Signed-off-by: Jani Nikula Link: https://patchwork.freedesktop.org/patch/msgid/20190122082307.4003-4-jani.nikula@intel.com --- diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index db0f15242ccf..8e89f04ddd9c 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -14504,6 +14504,9 @@ static void intel_setup_outputs(struct drm_i915_private *dev_priv) if (IS_G4X(dev_priv) && (I915_READ(DP_D) & DP_DETECTED)) intel_dp_init(dev_priv, DP_D, PORT_D); + + if (SUPPORTS_TV(dev_priv)) + intel_tv_init(dev_priv); } else if (IS_GEN(dev_priv, 2)) { if (IS_MOBILE(dev_priv) && !IS_I830(dev_priv)) intel_lvds_init(dev_priv); @@ -14514,9 +14517,6 @@ static void intel_setup_outputs(struct drm_i915_private *dev_priv) intel_dvo_init(dev_priv); } - if (SUPPORTS_TV(dev_priv)) - intel_tv_init(dev_priv); - intel_psr_init(dev_priv); for_each_intel_encoder(&dev_priv->drm, encoder) {