USB: ftdi_sio: use port_probe / port_remove thereby fixing access to the latency_timer
authorJim Radford <radford@blackbean.org>
Wed, 28 Feb 2007 18:10:50 +0000 (10:10 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 10 Mar 2007 03:52:24 +0000 (19:52 -0800)
commit12bdbe03c8db7139de1de5c622cb0609d259cece
tree8d3938e4ddee18c9a23eac12750ad50ec7f46118
parentd9a7ecacac5f8274d2afce09aadcf37bdb42b93a
USB: ftdi_sio: use port_probe / port_remove thereby fixing access to the latency_timer

Convert all the port specific code in attach / shutdown to use the new
port_probe / port_register callbacks from device_register /
device_unregister allowing adding the sysfs attributes to be added at
the correct time and to the serial port device itself, instead of to
the unadorned usb device, avoiding a NULL dereference.

Signed-off-by: Jim Radford <radford@blackbean.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/ftdi_sio.c