summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPradeep Singh Rautela <rautelap@gmail.com>2008-05-29 23:28:14 +0530
committerJeff Garzik <jgarzik@redhat.com>2008-05-30 12:37:43 -0400
commit2da676594a73825f10d2a99358cc7465119684f9 (patch)
treeb5e928464305e8931fe711579b193c40bb22c8af
parent23cf296e3b047da46112eb6b4dc89917c93c8f19 (diff)
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>
-rw-r--r--drivers/ata/libata-core.c2
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;