From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751773AbaHRQRn (ORCPT ); Mon, 18 Aug 2014 12:17:43 -0400 Received: from mail-qg0-f74.google.com ([209.85.192.74]:63237 "EHLO mail-qg0-f74.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750977AbaHRQRm (ORCPT ); Mon, 18 Aug 2014 12:17:42 -0400 X-Greylist: delayed 303 seconds by postgrey-1.27 at vger.kernel.org; Mon, 18 Aug 2014 12:17:42 EDT From: Andrew Bresticker To: Mathias Nyman , Greg Kroah-Hartman , linux-usb@vger.kernel.org Cc: Alan Stern , Julius Werner , Gregory CLEMENT , Yoshihiro Shimoda , Stephen Warren , Thierry Reding , linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, Andrew Bresticker Subject: [PATCH v2 3/4] xhci: Export symbols used by host-controller drivers Date: Mon, 18 Aug 2014 09:12:22 -0700 Message-Id: <1408378343-9352-4-git-send-email-abrestic@chromium.org> X-Mailer: git-send-email 2.1.0.rc2.206.gedb03e5 In-Reply-To: <1408378343-9352-1-git-send-email-abrestic@chromium.org> References: <1408378343-9352-1-git-send-email-abrestic@chromium.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- Changes from v1: - exported xhci_run() --- drivers/usb/host/xhci-dbg.c | 1 + drivers/usb/host/xhci.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/drivers/usb/host/xhci-dbg.c b/drivers/usb/host/xhci-dbg.c index eb009a4..bb89175 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 *), trace(&vaf); va_end(args); } +EXPORT_SYMBOL_GPL(xhci_dbg_trace); diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index a5cd831..edfc96f 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -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) { @@ -927,6 +928,7 @@ int xhci_suspend(struct xhci_hcd *xhci) return rc; } +EXPORT_SYMBOL_GPL(xhci_suspend); /* * start xHC (not bus-specific) @@ -1078,6 +1080,7 @@ int xhci_resume(struct xhci_hcd *xhci, bool hibernated) return retval; } +EXPORT_SYMBOL_GPL(xhci_resume); #endif /* CONFIG_PM */ /*-------------------------------------------------------------------------*/ @@ -4892,6 +4895,7 @@ error: kfree(xhci); return retval; } +EXPORT_SYMBOL_GPL(xhci_gen_setup); static const struct hc_driver xhci_hc_driver = { .description = "xhci-hcd", -- 2.1.0.rc2.206.gedb03e5