]> git.karo-electronics.de Git - linux-beck.git/commitdiff
USB: rename the usb misc class from "usb" to "usbmisc"
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Apr 2012 00:22:37 +0000 (17:22 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Jun 2012 22:37:13 +0000 (15:37 -0700)
This class was not named properly years ago, and it turns out that tools
like udev can't properly see the devices in this class after booting due
to the fact that there is a bus with the same name in the system.

Changing this to "usbmisc" fixes this problem, and it solves the problem
for the future when we want to unify classes and busses.

Reported-by: Kay Sievers <kay@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/file.c

index e673b26e598f3391627550bff784c21f2be97486..e5387a47ef6fea27f978782bbed9375f4ff22d1d 100644 (file)
@@ -92,7 +92,7 @@ static int init_usb_class(void)
        }
 
        kref_init(&usb_class->kref);
-       usb_class->class = class_create(THIS_MODULE, "usb");
+       usb_class->class = class_create(THIS_MODULE, "usbmisc");
        if (IS_ERR(usb_class->class)) {
                result = IS_ERR(usb_class->class);
                printk(KERN_ERR "class_create failed for usb devices\n");