diff options
Diffstat (limited to 'drivers/usb/storage/libusual.c')
-rw-r--r-- | drivers/usb/storage/libusual.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/storage/libusual.c b/drivers/usb/storage/libusual.c index 06d1107dbd47..55b952084f0c 100644 --- a/drivers/usb/storage/libusual.c +++ b/drivers/usb/storage/libusual.c | |||
@@ -30,7 +30,7 @@ static atomic_t usu_bias = ATOMIC_INIT(USB_US_DEFAULT_BIAS); | |||
30 | #define BIAS_NAME_SIZE (sizeof("usb-storage")) | 30 | #define BIAS_NAME_SIZE (sizeof("usb-storage")) |
31 | static const char *bias_names[3] = { "none", "usb-storage", "ub" }; | 31 | static const char *bias_names[3] = { "none", "usb-storage", "ub" }; |
32 | 32 | ||
33 | static DECLARE_MUTEX_LOCKED(usu_init_notify); | 33 | static struct semaphore usu_init_notify; |
34 | static DECLARE_COMPLETION(usu_end_notify); | 34 | static DECLARE_COMPLETION(usu_end_notify); |
35 | static atomic_t total_threads = ATOMIC_INIT(0); | 35 | static atomic_t total_threads = ATOMIC_INIT(0); |
36 | 36 | ||
@@ -204,6 +204,8 @@ static int __init usb_usual_init(void) | |||
204 | { | 204 | { |
205 | int rc; | 205 | int rc; |
206 | 206 | ||
207 | sema_init(&usu_init_notify, 0); | ||
208 | |||
207 | rc = usb_register(&usu_driver); | 209 | rc = usb_register(&usu_driver); |
208 | up(&usu_init_notify); | 210 | up(&usu_init_notify); |
209 | return rc; | 211 | return rc; |