X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fusb%2Fcore%2Ffile.c;h=db26eda94dbbb0a0e1eb23dc524cd9292ea3e56d;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=c74404332978e137bb695cc538789f08a6b7aa06;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/drivers/usb/core/file.c b/drivers/usb/core/file.c index c74404332..db26eda94 100644 --- a/drivers/usb/core/file.c +++ b/drivers/usb/core/file.c @@ -30,7 +30,7 @@ #define MAX_USB_MINORS 256 static struct file_operations *usb_minors[MAX_USB_MINORS]; -static spinlock_t minor_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(minor_lock); static int usb_open(struct inode * inode, struct file * file) {