From: José Roberto de Souza Date: Wed, 7 Nov 2018 23:54:47 +0000 (-0800) Subject: drm/i915: Reuse the aux_domain cached X-Git-Tag: microblaze-v5.1-rc1~14^2~20^2~69 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=6423382247e06a149b4d9138f11265f5dc317b07;p=linux-2.6-microblaze.git drm/i915: Reuse the aux_domain cached intel_dp_detect() caches the aux_domain in the beginning of the function as it is used twice, so lets also use it as the aux_domain don't change in runtime. v3: returning intel_dp_retrain_link() error insted of connector_status_disconnected Cc: Imre Deak Reviewed-by: Imre Deak Reviewed-by: Ville Syrjälä Signed-off-by: José Roberto de Souza Signed-off-by: Imre Deak Link: https://patchwork.freedesktop.org/patch/msgid/20181107235449.32264-1-jose.souza@intel.com --- diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 5258c9d654f4..2b090609bee2 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c @@ -5169,8 +5169,7 @@ intel_dp_detect(struct drm_connector *connector, ret = intel_dp_retrain_link(encoder, ctx); if (ret) { - intel_display_power_put(dev_priv, - intel_aux_power_domain(dig_port)); + intel_display_power_put(dev_priv, aux_domain); return ret; } }