diff options
author | Dave Airlie <airlied@redhat.com> | 2009-02-03 10:05:12 +0100 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2009-02-03 10:05:12 +0100 |
commit | ac048e1734699dd98f4bdf4daf2b9592d4a4d38e (patch) | |
tree | fc7d0800c9058bd32e7d12e4d1522a7e3b0092cf | |
parent | Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jba... (diff) | |
download | linux-ac048e1734699dd98f4bdf4daf2b9592d4a4d38e.tar.xz linux-ac048e1734699dd98f4bdf4daf2b9592d4a4d38e.zip |
i915: fix unneeded locking in i915 LVDS get modes code.
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>
-rw-r--r-- | drivers/gpu/drm/i915/intel_lvds.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c index b36a5214d8df..cf8da644faf2 100644 --- 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; } |