usb: io_ti: Make edge_remove_sysfs_attrs the port_remove method.
commit6d443d8499e4e59ffb949759cdded32730f8d2f6
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 14 Jan 2012 05:32:06 +0000 (13 21:32 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Jan 2012 20:08:35 +0000 (24 12:08 -0800)
tree730339226a8fe9ea620a11da276cd2a32d448892
parent52a749992ca6a0fd304609af40ed3bfd6cef4660
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