summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2007-05-26 05:20:59 +1000
committerDave Airlie <airlied@linux.ie>2007-05-26 05:20:59 +1000
commit2bb7703698bef1f599295126ca3834d37a8596c0 (patch)
treeaa38d7fee1a385a2276026f981f74c9ea23a125e /shared-core
parent8e083c522e73f27af7e97e0d202f56f0323abe81 (diff)
drm: spinlock initializer cleanup
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/i915_irq.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/shared-core/i915_irq.c b/shared-core/i915_irq.c
index e3335458..7955a2e8 100644
--- a/shared-core/i915_irq.c
+++ b/shared-core/i915_irq.c
@@ -722,11 +722,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;
- INIT_LIST_HEAD(&dev_priv->vbl_swaps.head);
- dev_priv->swaps_pending = 0;
-
- 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;