]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Lock initializer cleanup: Firewire
authorThomas Gleixner <tglx@linutronix.de>
Fri, 21 Jan 2005 00:20:17 +0000 (16:20 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 21 Jan 2005 00:20:17 +0000 (16:20 -0800)
Use the new lock initializers DEFINE_SPIN_LOCK and DEFINE_RW_LOCK

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/ieee1394/dv1394.c
drivers/ieee1394/highlevel.c
drivers/ieee1394/raw1394.c

index 332d8a2f781362898a245b4ac689556bef76acc8..f80090084575506306986bc696b0f1f1ad2ab815 100644 (file)
@@ -177,7 +177,7 @@ static long dv1394_compat_ioctl(struct file *file, unsigned int cmd,
 
 /* list of all video_cards */
 static LIST_HEAD(dv1394_cards);
-static spinlock_t dv1394_cards_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(dv1394_cards_lock);
 
 /* translate from a struct file* to the corresponding struct video_card* */
 
index 50c403c6cec5dd3d827c21caa5df0add586af90d..24c1746c8b7346e2d1ac3a04efb199b2dc483d0a 100644 (file)
@@ -43,9 +43,9 @@ static LIST_HEAD(hl_drivers);
 static DECLARE_RWSEM(hl_drivers_sem);
 
 static LIST_HEAD(hl_irqs);
-static rwlock_t hl_irqs_lock = RW_LOCK_UNLOCKED;
+static DEFINE_RWLOCK(hl_irqs_lock);
 
-static rwlock_t addr_space_lock = RW_LOCK_UNLOCKED;
+static DEFINE_RWLOCK(addr_space_lock);
 
 /* addr_space list will have zero and max already included as bounds */
 static struct hpsb_address_ops dummy_ops = { NULL, NULL, NULL, NULL };
index d57a000c5ddc0d23094d901611801ffa01005176..674dd23e55857e0558558d086ae4410bb2c9e156 100644 (file)
@@ -71,7 +71,7 @@ printk(KERN_INFO "raw1394:" fmt "\n" , ## args)
 
 static LIST_HEAD(host_info_list);
 static int host_count;
-static spinlock_t host_info_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(host_info_lock);
 static atomic_t internal_generation = ATOMIC_INIT(0);
 
 static atomic_t iso_buffer_size;