[ARM] Spinlock initializer cleanup
authorThomas Gleixner <tglx@linutronix.de>
Fri, 11 May 2007 05:33:04 +0000 (22:33 -0700)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 11 May 2007 16:38:04 +0000 (17:38 +0100)
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/time.c
arch/arm/mach-omap2/gpmc.c
arch/arm/mach-pnx4008/dma.c

index d0540e4eaf5b328d9f8a248df8a40647add6d03b..1533d3ecd7a05b71b559f56356560a37daabefcf 100644 (file)
@@ -512,7 +512,7 @@ void __init time_init(void)
 
 #ifdef CONFIG_NO_IDLE_HZ
        if (system_timer->dyn_tick)
-               system_timer->dyn_tick->lock = SPIN_LOCK_UNLOCKED;
+               spin_lock_init(&system_timer->dyn_tick->lock);
 #endif
 }
 
index 54c836a984565daa81115a2d2ae2ab4a0b8ce3d4..e290b989aa948f4af54ff7f9024287952c77e7c6 100644 (file)
@@ -54,7 +54,7 @@
 
 static struct resource gpmc_mem_root;
 static struct resource gpmc_cs_mem[GPMC_CS_NUM];
-static spinlock_t      gpmc_mem_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(gpmc_mem_lock);
 static unsigned                gpmc_cs_map;
 
 static void __iomem *gpmc_base =
index d6a279e4b52416213281fbb6bdd8f73ad8f7208e..f7009d845be838e58ede89dc9851d743a810bd4c 100644 (file)
@@ -47,7 +47,7 @@ static struct ll_pool {
        int count;
 } ll_pool;
 
-static spinlock_t ll_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(ll_lock);
 
 struct pnx4008_dma_ll *pnx4008_alloc_ll_entry(dma_addr_t * ll_dma)
 {
@@ -135,7 +135,7 @@ static inline void dma_decrement_usage(void)
        }
 }
 
-static spinlock_t dma_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(dma_lock);
 
 static inline void pnx4008_dma_lock(void)
 {