aoe: statically initialise devlist_lock
I guess aoedev_init() can go away now.
Cc: Greg KH <greg@kroah.com>
Cc: "Ed L. Cashin" <ecashin@coraid.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
diff --git a/drivers/block/aoe/aoedev.c b/drivers/block/aoe/aoedev.c
index d146c4e..f9a1cd9 100644
--- a/drivers/block/aoe/aoedev.c
+++ b/drivers/block/aoe/aoedev.c
@@ -16,7 +16,7 @@
static void skbpoolfree(struct aoedev *d);
static struct aoedev *devlist;
-static spinlock_t devlist_lock;
+static DEFINE_SPINLOCK(devlist_lock);
int
aoedev_isbusy(struct aoedev *d)
@@ -291,7 +291,5 @@
int __init
aoedev_init(void)
{
- spin_lock_init(&devlist_lock);
return 0;
}
-