diff options
Diffstat (limited to 'drivers/gpu/drm/i915/intel_dp.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_dp.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index d01bb430b5bc..2d5d9b010073 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c | |||
@@ -1154,7 +1154,7 @@ static void edp_panel_vdd_off_sync(struct intel_dp *intel_dp) | |||
1154 | u32 pp; | 1154 | u32 pp; |
1155 | u32 pp_stat_reg, pp_ctrl_reg; | 1155 | u32 pp_stat_reg, pp_ctrl_reg; |
1156 | 1156 | ||
1157 | WARN_ON(!mutex_is_locked(&dev->mode_config.connection_mutex)); | 1157 | WARN_ON(!drm_modeset_is_locked(&dev->mode_config.connection_mutex)); |
1158 | 1158 | ||
1159 | if (!intel_dp->want_panel_vdd && edp_have_panel_vdd(intel_dp)) { | 1159 | if (!intel_dp->want_panel_vdd && edp_have_panel_vdd(intel_dp)) { |
1160 | struct intel_digital_port *intel_dig_port = | 1160 | struct intel_digital_port *intel_dig_port = |
@@ -1191,9 +1191,9 @@ static void edp_panel_vdd_work(struct work_struct *__work) | |||
1191 | struct intel_dp, panel_vdd_work); | 1191 | struct intel_dp, panel_vdd_work); |
1192 | struct drm_device *dev = intel_dp_to_dev(intel_dp); | 1192 | struct drm_device *dev = intel_dp_to_dev(intel_dp); |
1193 | 1193 | ||
1194 | mutex_lock(&dev->mode_config.connection_mutex); | 1194 | drm_modeset_lock(&dev->mode_config.connection_mutex, NULL); |
1195 | edp_panel_vdd_off_sync(intel_dp); | 1195 | edp_panel_vdd_off_sync(intel_dp); |
1196 | mutex_unlock(&dev->mode_config.connection_mutex); | 1196 | drm_modeset_unlock(&dev->mode_config.connection_mutex); |
1197 | } | 1197 | } |
1198 | 1198 | ||
1199 | static void edp_panel_vdd_off(struct intel_dp *intel_dp, bool sync) | 1199 | static void edp_panel_vdd_off(struct intel_dp *intel_dp, bool sync) |
@@ -3666,9 +3666,9 @@ void intel_dp_encoder_destroy(struct drm_encoder *encoder) | |||
3666 | drm_encoder_cleanup(encoder); | 3666 | drm_encoder_cleanup(encoder); |
3667 | if (is_edp(intel_dp)) { | 3667 | if (is_edp(intel_dp)) { |
3668 | cancel_delayed_work_sync(&intel_dp->panel_vdd_work); | 3668 | cancel_delayed_work_sync(&intel_dp->panel_vdd_work); |
3669 | mutex_lock(&dev->mode_config.connection_mutex); | 3669 | drm_modeset_lock(&dev->mode_config.connection_mutex, NULL); |
3670 | edp_panel_vdd_off_sync(intel_dp); | 3670 | edp_panel_vdd_off_sync(intel_dp); |
3671 | mutex_unlock(&dev->mode_config.connection_mutex); | 3671 | drm_modeset_unlock(&dev->mode_config.connection_mutex); |
3672 | } | 3672 | } |
3673 | kfree(intel_dig_port); | 3673 | kfree(intel_dig_port); |
3674 | } | 3674 | } |
@@ -4247,9 +4247,9 @@ intel_dp_init_connector(struct intel_digital_port *intel_dig_port, | |||
4247 | drm_dp_aux_unregister(&intel_dp->aux); | 4247 | drm_dp_aux_unregister(&intel_dp->aux); |
4248 | if (is_edp(intel_dp)) { | 4248 | if (is_edp(intel_dp)) { |
4249 | cancel_delayed_work_sync(&intel_dp->panel_vdd_work); | 4249 | cancel_delayed_work_sync(&intel_dp->panel_vdd_work); |
4250 | mutex_lock(&dev->mode_config.connection_mutex); | 4250 | drm_modeset_lock(&dev->mode_config.connection_mutex, NULL); |
4251 | edp_panel_vdd_off_sync(intel_dp); | 4251 | edp_panel_vdd_off_sync(intel_dp); |
4252 | mutex_unlock(&dev->mode_config.connection_mutex); | 4252 | drm_modeset_unlock(&dev->mode_config.connection_mutex); |
4253 | } | 4253 | } |
4254 | drm_sysfs_connector_remove(connector); | 4254 | drm_sysfs_connector_remove(connector); |
4255 | drm_connector_cleanup(connector); | 4255 | drm_connector_cleanup(connector); |