OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23cf296
)
ata: Convert to static DEFINE_SPINLOCK(lock)
author
Pradeep Singh Rautela
<rautelap@gmail.com>
Thu, 29 May 2008 17:58:14 +0000
(23:28 +0530)
committer
Jeff Garzik
<jgarzik@redhat.com>
Fri, 30 May 2008 16:37:43 +0000
(12:37 -0400)
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>
drivers/ata/libata-core.c
patch
|
blob
|
history
diff --git
a/drivers/ata/libata-core.c
b/drivers/ata/libata-core.c
index
3c89f20
..
cc816ca
100644
(file)
--- 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;