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
..
buffer.c USB: fix codingstyle issues in drivers/usb/core/*.c 2008-02-01 14:35:08 -08:00
config.c USB: ehci tolerates some buggy devices 2008-04-24 21:16:35 -07:00
devices.c USB: fix codingstyle issues in drivers/usb/core/devices.c 2008-02-01 14:35:07 -08:00
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 Add missing newlines to some uses of dev_<level> messages 2007-10-18 14:37:28 -07:00
file.c USB: mark USB drivers as being GPL only 2008-02-01 14:35:07 -08:00
generic.c USB: move decision to ignore FREEZE events 2007-10-12 14:55:26 -07:00
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 USB: check serial-number string after device reset 2008-04-24 21:16:33 -07:00
hub.h USB: defines for USB "Link Power Management" (LPM) ECN 2008-04-24 21:16:34 -07:00
inode.c USB: mount options: fix usbfs 2008-02-01 14:35:06 -08:00
Kconfig USB: Remove EXPERIMENTAL from dynamic USB minor allocation. 2008-04-24 21:16:43 -07:00
Makefile USB: add a blacklist for devices that can't handle some things we throw at them. 2007-02-23 15:03:46 -08:00
message.c USB: rework sysfs removal of interface files 2008-04-24 21:16:48 -07:00
notify.c USB : correct comments in usb/core/notify.c 2008-02-01 14:34:44 -08:00
otg_whitelist.h USB: fix codingstyle issues in drivers/usb/core/*.h 2008-02-01 14:35:07 -08:00
quirks.c USB: enable USB-PERSIST by default 2008-04-24 21:16:33 -07:00
sysfs.c USB: remove CONFIG_USB_PERSIST setting 2008-04-24 21:16:32 -07:00
urb.c USB: fix codingstyle issues in drivers/usb/core/*.c 2008-02-01 14:35:08 -08:00
usb.c PM: Do not acquire device semaphores upfront during suspend 2008-03-04 14:47:05 -08:00
usb.h USB: remove dev->power.power_state 2008-04-24 21:16:41 -07:00