diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2017-10-10 14:12:04 +0200 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2017-10-13 19:54:29 +0200 |
commit | 680b71c201fc47859135cf27223b9bceea34beec (patch) | |
tree | 26a2253882b06b13d7c4980fe76e07dc8df73300 /drivers/gpu | |
parent | drm/i915: Split intel_ddi_post_disable() into DP vs. HDMI variants (diff) | |
download | linux-680b71c201fc47859135cf27223b9bceea34beec.tar.xz linux-680b71c201fc47859135cf27223b9bceea34beec.zip |
drm/i915: Remove useless eDP check from intel_ddi_pre_enable_dp()
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
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/i915/intel_ddi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c index afe56bc6fce3..945980e71697 100644 --- a/drivers/gpu/drm/i915/intel_ddi.c +++ b/drivers/gpu/drm/i915/intel_ddi.c @@ -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); |