diff options
author | Pradeep Singh Rautela <rautelap@gmail.com> | 2008-05-29 23:28:14 +0530 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-05-30 12:37:43 -0400 |
commit | 2da676594a73825f10d2a99358cc7465119684f9 (patch) | |
tree | b5e928464305e8931fe711579b193c40bb22c8af /drivers/ata | |
parent | 23cf296e3b047da46112eb6b4dc89917c93c8f19 (diff) | |
download | lwn-2da676594a73825f10d2a99358cc7465119684f9.tar.gz lwn-2da676594a73825f10d2a99358cc7465119684f9.zip |
ata: Convert to static DEFINE_SPINLOCK(lock)
Replace deprecated static spinlock_t instance to static DEFINE_SPINLOCK(lock).
Signed-off-by: Pradeep Singh <rautelap@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/libata-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 3c89f205c83f..cc816ca623d3 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -5403,7 +5403,7 @@ static void ata_host_stop(struct device *gendev, void *res) */ static void ata_finalize_port_ops(struct ata_port_operations *ops) { - static spinlock_t lock = SPIN_LOCK_UNLOCKED; + static DEFINE_SPINLOCK(lock); const struct ata_port_operations *cur; void **begin = (void **)ops; void **end = (void **)&ops->inherits; |