Skip to content

Commit

Permalink
USB: rename the usb misc class from "usb" to "usbmisc"
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Kroah-Hartman committed Jun 13, 2012
1 parent fc8ef48 commit 7e97243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/core/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 7e97243

Please sign in to comment.