aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Bresticker <abrestic@chromium.org>2014-10-03 04:35:28 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-10-03 17:44:45 -0400
commit436e8c7d457ff4ca89beca20cf54f5884de6af61 (patch)
tree403a3fa82f20ccbd3fcc30064cb0959a254ea707
parente1cd972741f537828307640c9e55f7b595e9ba1e (diff)
xhci: Export symbols used by host-controller drivers
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>
-rw-r--r--drivers/usb/host/xhci-dbg.c1
-rw-r--r--drivers/usb/host/xhci-trace.c2
-rw-r--r--drivers/usb/host/xhci.c4
3 files changed, 7 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-dbg.c b/drivers/usb/host/xhci-dbg.c
index eb009a457fb5..bb89175ca6e5 100644
--- a/drivers/usb/host/xhci-dbg.c
+++ b/drivers/usb/host/xhci-dbg.c
@@ -594,3 +594,4 @@ void xhci_dbg_trace(struct xhci_hcd *xhci, void (*trace)(struct va_format *),
594 trace(&vaf); 594 trace(&vaf);
595 va_end(args); 595 va_end(args);
596} 596}
597EXPORT_SYMBOL_GPL(xhci_dbg_trace);
diff --git a/drivers/usb/host/xhci-trace.c b/drivers/usb/host/xhci-trace.c
index 7cf30c83dcf3..367b630bdb3c 100644
--- a/drivers/usb/host/xhci-trace.c
+++ b/drivers/usb/host/xhci-trace.c
@@ -13,3 +13,5 @@
13 13
14#define CREATE_TRACE_POINTS 14#define CREATE_TRACE_POINTS
15#include "xhci-trace.h" 15#include "xhci-trace.h"
16
17EXPORT_TRACEPOINT_SYMBOL_GPL(xhci_dbg_quirks);
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
index d4e134058ae3..3e0f5c7aed7a 100644
--- a/drivers/usb/host/xhci.c
+++ b/drivers/usb/host/xhci.c
@@ -653,6 +653,7 @@ int xhci_run(struct usb_hcd *hcd)
653 "Finished xhci_run for USB2 roothub"); 653 "Finished xhci_run for USB2 roothub");
654 return 0; 654 return 0;
655} 655}
656EXPORT_SYMBOL_GPL(xhci_run);
656 657
657static void xhci_only_stop_hcd(struct usb_hcd *hcd) 658static void xhci_only_stop_hcd(struct usb_hcd *hcd)
658{ 659{
@@ -929,6 +930,7 @@ int xhci_suspend(struct xhci_hcd *xhci)
929 930
930 return rc; 931 return rc;
931} 932}
933EXPORT_SYMBOL_GPL(xhci_suspend);
932 934
933/* 935/*
934 * start xHC (not bus-specific) 936 * start xHC (not bus-specific)
@@ -1082,6 +1084,7 @@ int xhci_resume(struct xhci_hcd *xhci, bool hibernated)
1082 1084
1083 return retval; 1085 return retval;
1084} 1086}
1087EXPORT_SYMBOL_GPL(xhci_resume);
1085#endif /* CONFIG_PM */ 1088#endif /* CONFIG_PM */
1086 1089
1087/*-------------------------------------------------------------------------*/ 1090/*-------------------------------------------------------------------------*/
@@ -4902,6 +4905,7 @@ error:
4902 kfree(xhci); 4905 kfree(xhci);
4903 return retval; 4906 return retval;
4904} 4907}
4908EXPORT_SYMBOL_GPL(xhci_gen_setup);
4905 4909
4906static const struct hc_driver xhci_hc_driver = { 4910static const struct hc_driver xhci_hc_driver = {
4907 .description = "xhci-hcd", 4911 .description = "xhci-hcd",