xhci: Introduce xhci_init_driver()
authorAndrew Bresticker <abrestic@chromium.org>
Fri, 3 Oct 2014 08:35:26 +0000 (11:35 +0300)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 5 Dec 2014 01:11:31 +0000 (10:11 +0900)
commite7e7d7512a0539dce11140dde2a3286affa9a020
treeb0a62e4d171e25188ab29f1bfa3b530962bf8305
parent3f24140ff66ec61af497d4fb6d9bae0d9ebf2aca
xhci: Introduce xhci_init_driver()

Since the struct hc_driver is mostly the same across the xhci-pci,
xhci-plat, and the upcoming xhci-tegra driver, introduce the function
xhci_init_driver() which will populate the hc_driver with the default
xHCI operations.  The caller must supply a setup function which will
be used as the hc_driver's reset callback.

Note that xhci-plat also overrides the default ->start() callback so
that it can do rcar-specific initialization.

Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 1885d9a33753b73cbbe3f8efde4a852ecca08674)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/usb/host/xhci-pci.c
drivers/usb/host/xhci-plat.c
drivers/usb/host/xhci.c
drivers/usb/host/xhci.h