xHCI: factor out segments allocation and free function
authorAndiry Xu <andiry.xu@amd.com>
Mon, 5 Mar 2012 09:49:35 +0000 (17:49 +0800)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 13 Mar 2012 16:30:05 +0000 (09:30 -0700)
commit70d43601773b9f270b62867a51495846d746b5d4
tree70bb6e4da4c0b5fa559049b85ea2429fd498209d
parentb008df60c6369ba0290fa7daa177375407a12e07
xHCI: factor out segments allocation and free function

Factor out the segments allocation and free part from ring allocation
and free routines since driver may call them directly when try to expand
a ring.

Signed-off-by: Andiry Xu <andiry.xu@amd.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Tested-by: Paul Zimmerman <Paul.Zimmerman@synopsys.com>
drivers/usb/host/xhci-mem.c