Skip to contentSkip to conversation

ieee1394_core.c: use DEFINE_SPINLOCK for spinlock definition

PATCH In review Matthias Kaehlcke 2 participants 2 messages Oct 12, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 ieee1394_core.c: use DEFINE_SPINLOCK for spinlock definition

drivers/ieee1394/ieee1394_core.c: Define spinlock using DEFINE_SPINLOCK instead of assignment to SPIN_LOCK_UNLOCKED

--

drivers/ieee1394/ieee1394_core.c +1 -1
index 98fd985..36c747b 100644
@@ -488,7 +488,7 @@ void hpsb_selfid_complete(struct hpsb_host *host, int phyid, int isroot)
 	highlevel_host_reset(host);
 }
 
-static spinlock_t pending_packets_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(pending_packets_lock);
 
 /**
  * hpsb_packet_sent - notify core of sending a packet
Signature · 10 lines
Matthias Kaehlcke
Linux Application Developer
Barcelona

     La guerra es un acto abominable en el que se matan personas que no
      se conocen, dirigidas por personas que se conocen y no se matan
                                                                 .''`.
    using free software / Debian GNU/Linux | http://debian.org  : :'  :
                                                                `. `'`
gpg --keyserver pgp.mit.edu --recv-keys 47D8E5D4                  `-
#1 lore raw
Quoted 2 lines · Matthias Kaehlcke

drivers/ieee1394/ieee1394_core.c: Define spinlock using DEFINE_SPINLOCK instead of assignment to SPIN_LOCK_UNLOCKED

Committed to linux1394-2.6.git, thanks.

Signature · 3 lines
Stefan Richter
-=====-=-=== =-=- -==--
http://arcgraph.de/sr/