summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/i915/intel_lvds.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/drm/i915/intel_lvds.c')
-rw-r--r--sys/dev/pci/drm/i915/intel_lvds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/i915/intel_lvds.c b/sys/dev/pci/drm/i915/intel_lvds.c
index 243b0840d8c..bcc38e293f2 100644
--- a/sys/dev/pci/drm/i915/intel_lvds.c
+++ b/sys/dev/pci/drm/i915/intel_lvds.c
@@ -586,9 +586,9 @@ intel_lid_notify(struct notifier_block *nb, unsigned long val,
dev_priv->modeset_on_lid = 0;
- mtx_enter(&dev->mode_config.mutex);
+ rw_enter_write(&dev->mode_config.rwl);
intel_modeset_setup_hw_state(dev, true);
- mtx_leave(&dev->mode_config.mutex);
+ rw_exit_write(&dev->mode_config.rwl);
return NOTIFY_OK;
}