From: Andrew Morton Date: Fri, 8 Feb 2008 12:20:10 +0000 (-0800) Subject: aoe: statically initialise devlist_lock X-Git-Tag: v2.6.25-rc1~168 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=476aed3870b26735c4fcfdaa95420fa9e1de5119;p=linux-2.6 aoe: statically initialise devlist_lock I guess aoedev_init() can go away now. Cc: Greg KH Cc: "Ed L. Cashin" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/block/aoe/aoedev.c b/drivers/block/aoe/aoedev.c index d146c4eebd..f9a1cd9edb 100644 --- a/drivers/block/aoe/aoedev.c +++ b/drivers/block/aoe/aoedev.c @@ -16,7 +16,7 @@ static void freetgt(struct aoedev *d, struct aoetgt *t); 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 @@ aoedev_exit(void) int __init aoedev_init(void) { - spin_lock_init(&devlist_lock); return 0; } -