]> err.no Git - linux-2.6/commitdiff
Convert the remaining SPIN_LOCK_UNLOCKED instances to DEFINE_SPINLOCK.
authorRalf Baechle <ralf@linux-mips.org>
Mon, 3 Oct 2005 12:41:19 +0000 (13:41 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 29 Oct 2005 18:32:35 +0000 (19:32 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/au1000/common/dbdma.c
arch/mips/pci/ops-nile4.c
arch/mips/pmc-sierra/yosemite/smp.c
arch/mips/vr41xx/common/cmu.c
arch/mips/vr41xx/common/vrc4173.c

index 80d241b9c6f49c7f5a1afe91f891921777562dad..a5a6709637e02a2fb99b8b2ef7365949b787b69f 100644 (file)
@@ -58,7 +58,7 @@
  * functions.  The drivers allocate the data buffers and assign them
  * to the descriptors.
  */
-static spinlock_t au1xxx_dbdma_spin_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(au1xxx_dbdma_spin_lock);
 
 /* I couldn't find a macro that did this......
 */
index a7169928b3512369977cb0648e5ac143a1502a5d..a8d38dc8c504c400ff05315df9dfd4d82e868cd4 100644 (file)
@@ -15,7 +15,7 @@
 
 volatile unsigned long *const vrc_pciregs = (void *) Vrc5074_BASE;
 
-static spinlock_t nile4_pci_lock;
+static DEFINE_SPINLOCK(nile4_pci_lock);
 
 static int nile4_pcibios_config_access(unsigned char access_type,
        struct pci_bus *bus, unsigned int devfn, int where, u32 * val)
index 1d3b0734c78ceb5d35ca004b1e949bd5d621433e..0527170d6adb46fee7165b22b925c3d0f72c61df 100644 (file)
@@ -9,7 +9,7 @@ extern void (*mips_hpt_init)(unsigned int);
 
 #define LAUNCHSTACK_SIZE 256
 
-static spinlock_t launch_lock __initdata;
+static __initdata DEFINE_SPINLOCK(launch_lock);
 
 static unsigned long secondary_sp __initdata;
 static unsigned long secondary_gp __initdata;
index fcd3cb8cdd9dd55958d2f93d09822a95827b8a19..d758e432961bd0bb97b187011b33af670051483f 100644 (file)
@@ -69,7 +69,7 @@
 
 static void __iomem *cmu_base;
 static uint16_t cmuclkmsk, cmuclkmsk2;
-static spinlock_t cmu_lock;
+static DEFINE_SPINLOCK(cmu_lock);
 
 #define cmu_read(offset)               readw(cmu_base + (offset))
 #define cmu_write(offset, value)       writew((value), cmu_base + (offset))
index ba58764ef8ead5b0613fa13424caa50c336446c9..462a9af30eef7fb3d341cd7a3eddf2c42f055547 100644 (file)
@@ -81,8 +81,8 @@ EXPORT_SYMBOL(vrc4173_io_offset);
 static int vrc4173_initialized;
 static uint16_t vrc4173_cmuclkmsk;
 static uint16_t vrc4173_selectreg;
-static spinlock_t vrc4173_cmu_lock;
-static spinlock_t vrc4173_giu_lock;
+static DEFINE_SPINLOCK(vrc4173_cmu_lock);
+static DEFINE_SPINLOCK(vrc4173_giu_lock);
 
 static inline void set_cmusrst(uint16_t val)
 {