USB: EHCI: prepare to make ehci-hcd a library module
authorAlan Stern <[email protected]>
Thu, 1 Nov 2012 15:12:58 +0000 (11:12 -0400)
committerGreg Kroah-Hartman <[email protected]>
Thu, 1 Nov 2012 15:51:12 +0000 (08:51 -0700)
commit3e0232039967d7a1a06c013d097458b4d5892af1
treea7c05f48029f141bb26a7910080be3d8430b928a
parent7c83b4483606f5fe14127249336ac53ef177a63a
USB: EHCI: prepare to make ehci-hcd a library module

This patch (as1624) prepares ehci-hcd for being split up into a core
library and separate platform driver modules.  A generic
ehci_hc_driver structure is created, containing all the "standard"
values, and a new mechanism is added whereby a driver module can
specify a set of overrides to those values.  In addition the
ehci_setup(), ehci_suspend(), and ehci_resume() routines need to be
EXPORTed for use by the drivers.

As a side effect of this change, a few routines no longer need to be
marked __maybe_unused.

Signed-off-by: Alan Stern <[email protected]>
CC: Felipe Balbi <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ehci-hub.c
drivers/usb/host/ehci.h