diff options
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/aoe/aoedev.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/block/aoe/aoedev.c b/drivers/block/aoe/aoedev.c index d146c4eebd34..f9a1cd9edb77 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); | |||
16 | static void skbpoolfree(struct aoedev *d); | 16 | static void skbpoolfree(struct aoedev *d); |
17 | 17 | ||
18 | static struct aoedev *devlist; | 18 | static struct aoedev *devlist; |
19 | static spinlock_t devlist_lock; | 19 | static DEFINE_SPINLOCK(devlist_lock); |
20 | 20 | ||
21 | int | 21 | int |
22 | aoedev_isbusy(struct aoedev *d) | 22 | aoedev_isbusy(struct aoedev *d) |
@@ -291,7 +291,5 @@ aoedev_exit(void) | |||
291 | int __init | 291 | int __init |
292 | aoedev_init(void) | 292 | aoedev_init(void) |
293 | { | 293 | { |
294 | spin_lock_init(&devlist_lock); | ||
295 | return 0; | 294 | return 0; |
296 | } | 295 | } |
297 | |||