linux/drivers/usb/core
Alan Stern 61a5c65789 USB: rework sysfs removal of interface files
Removing an interface's sysfs files before unregistering the interface
doesn't work properly, because usb_unbind_interface() will reinstall
altsetting 0 and thereby create new sysfs files.  This patch (as1074)
removes the files after the unregistration is finished.  It's not
quite as clean, but at least it works.

Also, there's no need to check if an interface has been registered
before removing its sysfs files.  If it hasn't been registered then
the files won't have been created, so usb_remove_sysfs_intf_files()
will simply do nothing.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Tested-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-04-24 21:16:48 -07:00
..
Kconfig USB: Remove EXPERIMENTAL from dynamic USB minor allocation. 2008-04-24 21:16:43 -07:00
Makefile
buffer.c
config.c USB: ehci tolerates some buggy devices 2008-04-24 21:16:35 -07:00
devices.c
devio.c drivers/usb/core/devio.c: suppress warning with 64k PAGE_SIZE 2008-04-24 21:16:41 -07:00
driver.c USB: remove dev->power.power_state 2008-04-24 21:16:41 -07:00
endpoint.c
file.c
generic.c
hcd-pci.c USB: clarify usage of hcd->suspend/resume methods 2008-04-24 21:16:48 -07:00
hcd.c USB: root hubs don't lie about their number of TTs 2008-04-24 21:16:48 -07:00
hcd.h USB: clarify usage of hcd->suspend/resume methods 2008-04-24 21:16:48 -07:00
hub.c
hub.h USB: defines for USB "Link Power Management" (LPM) ECN 2008-04-24 21:16:34 -07:00
inode.c
message.c USB: rework sysfs removal of interface files 2008-04-24 21:16:48 -07:00
notify.c
otg_whitelist.h
quirks.c USB: enable USB-PERSIST by default 2008-04-24 21:16:33 -07:00
sysfs.c
urb.c
usb.c
usb.h USB: remove dev->power.power_state 2008-04-24 21:16:41 -07:00