]> git.baikalelectronics.ru Git - kernel.git/commit
usb: io_ti: Make edge_remove_sysfs_attrs the port_remove method.
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 14 Jan 2012 05:32:06 +0000 (21:32 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Jan 2012 20:08:35 +0000 (12:08 -0800)
commit7c1c78278c44c4d45dd375b83a5fa1d7f4848727
tree730339226a8fe9ea620a11da276cd2a32d448892
parent71cd38dcafe9298ac9a818aa0447e7c94f2ca7b2
usb: io_ti: Make edge_remove_sysfs_attrs the port_remove method.

Calling edge_remove_sysfs_attrs from edge_disconnect is too late
as the device has already been removed from sysfs.

Do the simple and obvious thing and make edge_remove_sysfs_attrs
the port_remove method.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Reported-by: Wolfgang Frisch <wfpub@roembden.net>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/io_ti.c