From: Joonyoung Shim Date: Tue, 3 Mar 2015 16:32:09 +0000 (+0100) Subject: usb: dwc3: make dwc3_set_mode to static X-Git-Tag: v2015.07-rc1~358 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7e9cb7962f401439c9f107878100810b138f6ab9;p=oweals%2Fu-boot.git usb: dwc3: make dwc3_set_mode to static This commit makes the dwc3_set_mode() as static, to prevent collisions. Signed-off-by: Joonyoung Shim Signed-off-by: Lukasz Majewski --- diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 78fce1bf12..33d2cf2f11 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -32,7 +32,7 @@ static LIST_HEAD(dwc3_list); /* -------------------------------------------------------------------------- */ -void dwc3_set_mode(struct dwc3 *dwc, u32 mode) +static void dwc3_set_mode(struct dwc3 *dwc, u32 mode) { u32 reg; diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index 5288a18c81..72d2fcdd3f 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -987,7 +987,6 @@ struct dwc3_gadget_ep_cmd_params { #define DWC3_HAS_OTG BIT(3) /* prototypes */ -void dwc3_set_mode(struct dwc3 *dwc, u32 mode); int dwc3_gadget_resize_tx_fifos(struct dwc3 *dwc); #ifdef CONFIG_USB_DWC3_HOST