Commit e9ab2111 authored by Johannes Erdfelt's avatar Johannes Erdfelt Committed by Greg Kroah-Hartman

[PATCH] usb_get_driver_np() gives wrong driver name (usb_mouse)

On Thu, Feb 06, 2003, Johannes Erdfelt <johannes@erdfelt.com> wrote:
> On Thu, Feb 06, 2003, Boris Duerner <Marc.Duerner@student.shu.ac.uk> wrote:
> > I use the usb_get_driver_np() function to get the name of the loaded driver
> > for a usb device and I found that for a device using the usbmouse module the
> > wrong driver name is returned. It gives me "usb_mouse" instead of usbmouse.
> > the driver name is also wrong in /proc/bus/usb/drivers but correct in lsmod
> > or /proc/modules resp.
>
> The driver name in /proc/bus/usb/drivers is given differently than from
> /proc/modules.
>
> I'm not exactly sure why the names are seperate, but it leads to
> situations like this where the names won't match for seemingly no good
> reason. The usbkbd driver was even worse, giving it's name as "keyboard".

And the 2.5 patch.
parent b5dc61cb
......@@ -353,7 +353,7 @@ static struct usb_device_id usb_kbd_id_table [] = {
MODULE_DEVICE_TABLE (usb, usb_kbd_id_table);
static struct usb_driver usb_kbd_driver = {
.name = "keyboard",
.name = "usbkbd",
.probe = usb_kbd_probe,
.disconnect = usb_kbd_disconnect,
.id_table = usb_kbd_id_table,
......
......@@ -237,7 +237,7 @@ static struct usb_device_id usb_mouse_id_table [] = {
MODULE_DEVICE_TABLE (usb, usb_mouse_id_table);
static struct usb_driver usb_mouse_driver = {
.name = "usb_mouse",
.name = "usbmouse",
.probe = usb_mouse_probe,
.disconnect = usb_mouse_disconnect,
.id_table = usb_mouse_id_table,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment