]> git.baikalelectronics.ru Git - kernel.git/commit
USB: sierra: cleanup the startup and shutdown path
authorGreg Kroah-Hartman <gregkh@suse.de>
Wed, 20 Jun 2007 05:22:23 +0000 (14:22 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Jul 2007 23:34:37 +0000 (16:34 -0700)
commit22995048fb42b02036e3e66f2581e07fb3abdd79
tree4d0258d76ceab4621e57b646ad80ace80f5911aa
parenta80210ad8e9b9b79e70b7388cc89fb4024c75f24
USB: sierra: cleanup the startup and shutdown path

This removes the ugly code that was copied from the keyspan driver and
allocates the in urbs in a much shorter code path that can be understood
easier.

Also turned off the interrupt urb when no port was open as it's not nice
to keep the bus busy for no good reason at all (this should be a power
savings.)

All in all, this saved over 40 lines of code and cleaned things up
better.

Cc: Kevin Lloyd <linux@sierrawireless.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/sierra.c