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)
commit9e85c5f63268a5700860f53e52b090973652a5b2
tree4d0258d76ceab4621e57b646ad80ace80f5911aa
parent17c2327419a889293fb955baf0c69a7d38c5809c
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