]> err.no Git - linux-2.6/commit
usbcore: make usb_generic a usb_device_driver
authorAlan Stern <stern@rowland.harvard.edu>
Sun, 2 Jul 2006 02:09:35 +0000 (22:09 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 27 Sep 2006 18:58:50 +0000 (11:58 -0700)
commit782da727b0d59e93c84a627948b1535a3db90392
tree155cfe2df2a57961234c44186890fdcce72a0eb6
parent8bb54ab573ecd1b4fe2ed66416a8d99a86e65316
usbcore: make usb_generic a usb_device_driver

This patch (as714b) makes usb_generic into a usb_device_driver capable
of being probed and unbound, just like other drivers.  A fair amount of
the work that used to get done during discovery or removal of a USB
device have been moved to the probe and disconnect methods of
usb_generic: creating the sysfs attributes and selecting an initial
configuration.  However the normal behavior should continue to be the
same as before.

We will now have the possibility of creating other USB device drivers,
They will assist with exporting devices to remote systems
(USB-over-TCPIP) or to paravirtual guest operating systems.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/driver.c
drivers/usb/core/generic.c
drivers/usb/core/hub.c
drivers/usb/core/usb.c