* [PATCH 2/2] ieee1394_core.c: use DEFINE_SPINLOCK for spinlock definition
@ 2007-10-12 17:57 Matthias Kaehlcke
2007-10-12 18:12 ` Stefan Richter
0 siblings, 1 reply; 2+ messages in thread
From: Matthias Kaehlcke @ 2007-10-12 17:57 UTC (permalink / raw)
To: krh, stefanr, linux1394-devel; +Cc: linux-kernel, akpm
drivers/ieee1394/ieee1394_core.c: Define spinlock using
DEFINE_SPINLOCK instead of assignment to SPIN_LOCK_UNLOCKED
Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com>
--
diff --git a/drivers/ieee1394/ieee1394_core.c b/drivers/ieee1394/ieee1394_core.c
index 98fd985..36c747b 100644
--- a/drivers/ieee1394/ieee1394_core.c
+++ b/drivers/ieee1394/ieee1394_core.c
@@ -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
--
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 `-
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-12 18:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-12 17:57 [PATCH 2/2] ieee1394_core.c: use DEFINE_SPINLOCK for spinlock definition Matthias Kaehlcke
2007-10-12 18:12 ` Stefan Richter
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.