Skip to content

Commit

Permalink
xhci: Export symbols used by host-controller drivers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Bresticker authored and Greg Kroah-Hartman committed Oct 3, 2014
1 parent e1cd972 commit 436e8c7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/host/xhci-dbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
2 changes: 2 additions & 0 deletions drivers/usb/host/xhci-trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@

#define CREATE_TRACE_POINTS
#include "xhci-trace.h"

EXPORT_TRACEPOINT_SYMBOL_GPL(xhci_dbg_quirks);
4 changes: 4 additions & 0 deletions drivers/usb/host/xhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -929,6 +930,7 @@ int xhci_suspend(struct xhci_hcd *xhci)

return rc;
}
EXPORT_SYMBOL_GPL(xhci_suspend);

/*
* start xHC (not bus-specific)
Expand Down Expand Up @@ -1082,6 +1084,7 @@ int xhci_resume(struct xhci_hcd *xhci, bool hibernated)

return retval;
}
EXPORT_SYMBOL_GPL(xhci_resume);
#endif /* CONFIG_PM */

/*-------------------------------------------------------------------------*/
Expand Down Expand Up @@ -4902,6 +4905,7 @@ int xhci_gen_setup(struct usb_hcd *hcd, xhci_get_quirks_t get_quirks)
kfree(xhci);
return retval;
}
EXPORT_SYMBOL_GPL(xhci_gen_setup);

static const struct hc_driver xhci_hc_driver = {
.description = "xhci-hcd",
Expand Down

0 comments on commit 436e8c7

Please sign in to comment.