]> git.baikalelectronics.ru Git - kernel.git/commit
USB: usb-serial: call port_probe and port_remove at the right times
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 2 Jun 2009 15:54:11 +0000 (11:54 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Jun 2009 04:44:47 +0000 (21:44 -0700)
commit3966aa4af7d9d0ca3d783be06fcd436b12639a62
tree1f880601cdd2663ee4206783092d5fa9d90c8922
parent3e15b6728d9acdb461acbad02bd22081ef675f29
USB: usb-serial: call port_probe and port_remove at the right times

This patch (as1253) prevents the usb-serial core from calling a
driver's port_probe and port_remove methods more than once per port.
It also removes some unnecessary try_module_get() calls and adds a
missing port_remove method call in a failure path.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/bus.c
drivers/usb/serial/usb-serial.c
include/linux/usb/serial.h