From: Andrew Morton I guess aoedev_init() can go away now. Cc: Greg KH Cc: "Ed L. Cashin" Signed-off-by: Andrew Morton --- drivers/block/aoe/aoedev.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff -puN drivers/block/aoe/aoedev.c~aoe-statically-initialise-devlist_lock drivers/block/aoe/aoedev.c --- a/drivers/block/aoe/aoedev.c~aoe-statically-initialise-devlist_lock +++ a/drivers/block/aoe/aoedev.c @@ -16,7 +16,7 @@ static void freetgt(struct aoedev *d, st 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; } - _