kernel_optimize_test/drivers/usb/core
Alan Stern 91f8d063d3 USB: consolidate usb_unbind_interface and usb_driver_release_interface
This patch (as1230) consolidates code in usb_unbind_interface() and
usb_driver_release_interface().  In fact, it makes release_interface
call unbind_interface, thereby removing the need for duplicated code.

It works like this: If the interface has already been registered with
the driver core when a driver releases it, then the usual driver-core
mechanism will call unbind_interface.  If it hasn't been unregistered
then we will make the call ourselves.

As a nice bonus, drivers now don't have to worry about whether their
disconnect method will get called when they release an interface -- it
always will.  Previously it would be called only if the interface was
registered.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-06-15 21:44:41 -07:00
..
buffer.c USB: pass mem_flags to dma_alloc_coherent 2009-04-23 14:15:28 -07:00
config.c
devices.c
devio.c USB: add reset endpoint operations 2009-04-17 10:50:27 -07:00
driver.c USB: consolidate usb_unbind_interface and usb_driver_release_interface 2009-06-15 21:44:41 -07:00
endpoint.c
file.c
generic.c
hcd-pci.c
hcd.c USB: add reset endpoint operations 2009-04-17 10:50:27 -07:00
hcd.h USB: add reset endpoint operations 2009-04-17 10:50:27 -07:00
hub.c
hub.h
inode.c Push BKL down into ->remount_fs() 2009-06-11 21:36:11 -04:00
Kconfig
Makefile
message.c USB: add reset endpoint operations 2009-04-17 10:50:27 -07:00
notify.c
otg_whitelist.h
quirks.c
sysfs.c
urb.c
usb.c USB: add reset endpoint operations 2009-04-17 10:50:27 -07:00
usb.h