xhci: Export symbols used by host-controller drivers
authorAndrew Bresticker <abrestic@chromium.org>
Fri, 3 Oct 2014 08:35:28 +0000 (11:35 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Oct 2014 21:44:45 +0000 (14:44 -0700)
In preparation for allowing the xHCI host controller drivers to be built
as separate modules, export symbols from the xHCI core that may be used
by the host controller drivers.

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>
drivers/usb/host/xhci-dbg.c
drivers/usb/host/xhci-trace.c
drivers/usb/host/xhci.c

index eb009a457fb537f6c6674d097e852de0501e98dc..bb89175ca6e5dd5e9669076ee3f5ddbde05c638e 100644 (file)
@@ -594,3 +594,4 @@ void xhci_dbg_trace(struct xhci_hcd *xhci, void (*trace)(struct va_format *),
        trace(&vaf);
        va_end(args);
 }
+EXPORT_SYMBOL_GPL(xhci_dbg_trace);
index 7cf30c83dcf3af899c3663f739d15bb3ed25e45a..367b630bdb3c0376e065bea040971784f8c39d81 100644 (file)
@@ -13,3 +13,5 @@
 
 #define CREATE_TRACE_POINTS
 #include "xhci-trace.h"
+
+EXPORT_TRACEPOINT_SYMBOL_GPL(xhci_dbg_quirks);
index d4e134058ae3f157e00bfaefb08fd27edc36d445..3e0f5c7aed7a48a531ed5960808e26e3d62fca08 100644 (file)
@@ -653,6 +653,7 @@ int xhci_run(struct usb_hcd *hcd)
                        "Finished xhci_run for USB2 roothub");
        return 0;
 }
+EXPORT_SYMBOL_GPL(xhci_run);
 
 static void xhci_only_stop_hcd(struct usb_hcd *hcd)
 {
@@ -929,6 +930,7 @@ int xhci_suspend(struct xhci_hcd *xhci)
 
        return rc;
 }
+EXPORT_SYMBOL_GPL(xhci_suspend);
 
 /*
  * start xHC (not bus-specific)
@@ -1082,6 +1084,7 @@ int xhci_resume(struct xhci_hcd *xhci, bool hibernated)
 
        return retval;
 }
+EXPORT_SYMBOL_GPL(xhci_resume);
 #endif /* CONFIG_PM */
 
 /*-------------------------------------------------------------------------*/
@@ -4902,6 +4905,7 @@ error:
        kfree(xhci);
        return retval;
 }
+EXPORT_SYMBOL_GPL(xhci_gen_setup);
 
 static const struct hc_driver xhci_hc_driver = {
        .description =          "xhci-hcd",