diff options
author | Keith Packard <keithp@keithp.com> | 2011-10-31 14:30:10 -0400 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-11-01 12:14:56 -0400 |
commit | 627f7675f0f530ea555d76543dc4e469d70a1532 (patch) | |
tree | d67ae7aacff546d9dc1c87121af7b472554f86dc /drivers | |
parent | c5e62bdd73da80e1017058c923336a5a150af9f2 (diff) |
drm/i915: Use mode_config.mutex in ironlake_panel_vdd_work
Use of the struct_mutex is not correct for locking in mode setting paths.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/i915/intel_dp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index fc1a0832af4f..7259034b33d1 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c | |||
@@ -971,9 +971,9 @@ static void ironlake_panel_vdd_work(struct work_struct *__work) | |||
971 | struct intel_dp, panel_vdd_work); | 971 | struct intel_dp, panel_vdd_work); |
972 | struct drm_device *dev = intel_dp->base.base.dev; | 972 | struct drm_device *dev = intel_dp->base.base.dev; |
973 | 973 | ||
974 | mutex_lock(&dev->struct_mutex); | 974 | mutex_lock(&dev->mode_config.mutex); |
975 | ironlake_panel_vdd_off_sync(intel_dp); | 975 | ironlake_panel_vdd_off_sync(intel_dp); |
976 | mutex_unlock(&dev->struct_mutex); | 976 | mutex_unlock(&dev->mode_config.mutex); |
977 | } | 977 | } |
978 | 978 | ||
979 | static void ironlake_edp_panel_vdd_off(struct intel_dp *intel_dp, bool sync) | 979 | static void ironlake_edp_panel_vdd_off(struct intel_dp *intel_dp, bool sync) |