OSDN Git Service

usb: xhci: cleanup xhci_hcd allocation
authorRoger Quadros <rogerq@ti.com>
Fri, 29 May 2015 14:01:46 +0000 (17:01 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 May 2015 06:45:30 +0000 (15:45 +0900)
commitcd33a32157e42483ffea31e32b1cee4f11ff9592
treec2e6c1cd26bf9e96259ed06d62e9059e214df808
parent2cfef79ddce42e9604293424381b2e59913f600c
usb: xhci: cleanup xhci_hcd allocation

HCD core allocates memory for HCD private data in
usb_create_[shared_]hcd() so make use of that
mechanism to allocate the struct xhci_hcd.

Introduce struct xhci_driver_overrides to provide
the size of HCD private data and hc_driver operation
overrides. As of now we only need to override the
reset and start methods.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-pci.c
drivers/usb/host/xhci-plat.c
drivers/usb/host/xhci.c
drivers/usb/host/xhci.h