drm/i915: Remove useless eDP check from intel_ddi_pre_enable_dp()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 10 Oct 2017 12:12:04 +0000 (15:12 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 13 Oct 2017 17:54:29 +0000 (20:54 +0300)
intel_edp_panel_on() will itself do the is_edp() check, so the caller
doesn't have to bother. Pre-DDI code doesn't bother, so let's follow the
same approach for DDI.

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171010121207.570-7-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_ddi.c

index afe56bc6fce30864f3014d1c0590b01cbd24ae5b..945980e71697f3c3bbe33dc4b2e49640a2f4e14e 100644 (file)
@@ -2171,8 +2171,8 @@ static void intel_ddi_pre_enable_dp(struct intel_encoder *encoder,
 
        intel_dp_set_link_params(intel_dp, link_rate, lane_count,
                                 link_mst);
-       if (encoder->type == INTEL_OUTPUT_EDP)
-               intel_edp_panel_on(intel_dp);
+
+       intel_edp_panel_on(intel_dp);
 
        intel_ddi_clk_select(encoder, pll);