USB: reorganize code in hub.c
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 3 Mar 2008 20:15:43 +0000 (15:15 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Apr 2008 04:16:32 +0000 (21:16 -0700)
commit3eb14915a300f539f271e3716f2421bb0697ed48
tree99a834182c6135f03df9d632a4607e51904e3304
parent3bb1af5243d41af9518728445e9c9bd30dd47237
USB: reorganize code in hub.c

This patch (as1045) reorganizes some code in the hub driver.
hub_port_status() is moved earlier in the file, and a new hub_stop()
routine is created to do the work currently in hub_preset() (i.e.,
disconnect all child devices and quiesce the hub).

There are no functional changes.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hub.c