diff options
author | Keith Packard <keithp@keithp.com> | 2011-10-31 19:30:10 +0100 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-11-01 17:14:56 +0100 |
commit | 627f7675f0f530ea555d76543dc4e469d70a1532 (patch) | |
tree | d67ae7aacff546d9dc1c87121af7b472554f86dc | |
parent | agp: iommu_gfx_mapped only available if CONFIG_INTEL_IOMMU is set (diff) | |
download | linux-627f7675f0f530ea555d76543dc4e469d70a1532.tar.xz linux-627f7675f0f530ea555d76543dc4e469d70a1532.zip |
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>
-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) struct intel_dp, panel_vdd_work); struct drm_device *dev = intel_dp->base.base.dev; - mutex_lock(&dev->struct_mutex); + mutex_lock(&dev->mode_config.mutex); ironlake_panel_vdd_off_sync(intel_dp); - mutex_unlock(&dev->struct_mutex); + mutex_unlock(&dev->mode_config.mutex); } static void ironlake_edp_panel_vdd_off(struct intel_dp *intel_dp, bool sync) |