]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbfea31e2f11ca267bf446db9a6eec6e9f0bf7640
tree8d3938e4ddee18c9a23eac12750ad50ec7f46118
parent5d6234ed8eb4786430878771a373307697263479
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