From: Roel Kluin <12o3l@tiscali.nl> Date: Wed, 17 Oct 2007 06:30:25 +0000 (-0700) Subject: spin_lock_unlocked cleanups X-Git-Tag: v2.6.24-rc1~588 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f7a75f0a40073601a0fb509290019d5f3f32b94b;p=linux-2.6-omap-h63xx.git spin_lock_unlocked cleanups Replace some SPIN_LOCK_UNLOCKED with DEFINE_SPINLOCK Signed-off-by: Roel Kluin <12o3l@tiscali.nl> Acked-by: Thomas Gleixner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/mips/pci/ops-pmcmsp.c b/arch/mips/pci/ops-pmcmsp.c index 09fa007c1d1..059eade96f2 100644 --- a/arch/mips/pci/ops-pmcmsp.c +++ b/arch/mips/pci/ops-pmcmsp.c @@ -206,7 +206,7 @@ static void pci_proc_init(void) } #endif /* CONFIG_PROC_FS && PCI_COUNTERS */ -spinlock_t bpci_lock = SPIN_LOCK_UNLOCKED; +DEFINE_SPINLOCK(bpci_lock); /***************************************************************************** * diff --git a/arch/powerpc/mm/slice.c b/arch/powerpc/mm/slice.c index 319826ef164..ad928edafb0 100644 --- a/arch/powerpc/mm/slice.c +++ b/arch/powerpc/mm/slice.c @@ -34,7 +34,7 @@ #include #include -static spinlock_t slice_convert_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(slice_convert_lock); #ifdef DEBUG diff --git a/fs/sysfs/dir.c b/fs/sysfs/dir.c index d3118d48293..7a8ce9e98b3 100644 --- a/fs/sysfs/dir.c +++ b/fs/sysfs/dir.c @@ -24,9 +24,9 @@ DEFINE_MUTEX(sysfs_mutex); DEFINE_MUTEX(sysfs_rename_mutex); -spinlock_t sysfs_assoc_lock = SPIN_LOCK_UNLOCKED; +DEFINE_SPINLOCK(sysfs_assoc_lock); -static spinlock_t sysfs_ino_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(sysfs_ino_lock); static DEFINE_IDA(sysfs_ino_ida); /**