usb: io_ti: Make edge_remove_sysfs_attrs the port_remove method.
commita76f8a07523c519d1b5a469f09a927ef3e8c64fc
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 14 Jan 2012 05:32:06 +0000 (13 21:32 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2012 17:22:05 +0000 (3 09:22 -0800)
treeef0e78173e60ea72876afbe7754c08145777789f
parent119fd91db5443904cddd1a6edbfe75f382ff25f5
usb: io_ti: Make edge_remove_sysfs_attrs the port_remove method.

commit 6d443d8499e4e59ffb949759cdded32730f8d2f6 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/io_ti.c