]> git.baikalelectronics.ru Git - kernel.git/commit
USB: add remove_id sysfs attr for usb drivers
authorCHENG Renquan <rqcheng@smu.edu.sg>
Sat, 21 Nov 2009 17:28:52 +0000 (01:28 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 19:55:26 +0000 (11:55 -0800)
commit94597c550f8d77ffb7fbbd430cccc39dbe5ec201
tree30c4d09a7d142c46177ced1c8600a7d7f6bcde25
parent4f12a4010e14e6ab8d8876b6a35bc11f1150bde1
USB: add remove_id sysfs attr for usb drivers

Accroding commit 595c9b23, which is adding remove_id sysfs attr
for pci drivers, for management tools dynamically bind/unbind
a pci/usb devices to a specified drivers; with this patch,
the management tools can be simplied.

And the original code didn't handle the failure of
usb_create_newid_file, fixed in this patch.

Signed-off-by: CHENG Renquan <rqcheng@smu.edu.sg>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Documentation/ABI/testing/sysfs-bus-usb
drivers/usb/core/driver.c