]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm: Spinlock initializer cleanup
authorThomas Gleixner <tglx@linutronix.de>
Fri, 25 May 2007 19:56:14 +0000 (05:56 +1000)
committerDave Airlie <airlied@linux.ie>
Fri, 25 May 2007 17:52:45 +0000 (03:52 +1000)
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/i915_irq.c

index 78c1ae28f17cd65f1441609359aea708f7149394..b92062a239f1a8c0d92e60405af0eeccdfa59a85 100644 (file)
@@ -582,7 +582,7 @@ void i915_driver_irq_postinstall(drm_device_t * dev)
 {
        drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private;
 
-       dev_priv->swaps_lock = SPIN_LOCK_UNLOCKED;
+       spin_lock_init(&dev_priv->swaps_lock);
        INIT_LIST_HEAD(&dev_priv->vbl_swaps.head);
        dev_priv->swaps_pending = 0;