projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1792e3
)
i915: fix unneeded locking in i915 LVDS get modes code.
author
Dave Airlie
<airlied@redhat.com>
Tue, 3 Feb 2009 09:05:12 +0000
(19:05 +1000)
committer
Dave Airlie
<airlied@linux.ie>
Tue, 3 Feb 2009 09:05:12 +0000
(19:05 +1000)
This code is always called under the lock from the higher layers,
so need to go locking it here.
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/i915/intel_lvds.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/i915/intel_lvds.c
b/drivers/gpu/drm/i915/intel_lvds.c
index b36a5214d8dfafe32767990d34cf61362e16ffb3..cf8da644faf24cb99f1fa19f2661b17e5cf43047 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_lvds.c
+++ b/
drivers/gpu/drm/i915/intel_lvds.c
@@
-311,10
+311,8
@@
static int intel_lvds_get_modes(struct drm_connector *connector)
if (dev_priv->panel_fixed_mode != NULL) {
struct drm_display_mode *mode;
- mutex_lock(&dev->mode_config.mutex);
mode = drm_mode_duplicate(dev, dev_priv->panel_fixed_mode);
drm_mode_probed_add(connector, mode);
- mutex_unlock(&dev->mode_config.mutex);
return 1;
}