From: Grigor Tovmasyan Date: Fri, 19 Jan 2018 10:43:01 +0000 (+0400) Subject: usb: dwc2: Make dwc2_force_mode() static X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=365b7673c34fed58b0a04ee4a7a51102c65ccd2e;p=openwrt%2Fstaging%2Fblogic.git usb: dwc2: Make dwc2_force_mode() static Declared dwc2_force_mode() function as static, because it was used only in core.c file, for fixing sparse error. Acked-by: John Youn Signed-off-by: Grigor Tovmasyan Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/dwc2/core.c b/drivers/usb/dwc2/core.c index cf1faf2443d0..18a0a1771289 100644 --- a/drivers/usb/dwc2/core.c +++ b/drivers/usb/dwc2/core.c @@ -611,7 +611,7 @@ void dwc2_force_mode(struct dwc2_hsotg *hsotg, bool host) * the force mode. We only need to call this once during probe if * dr_mode == OTG. */ -void dwc2_clear_force_mode(struct dwc2_hsotg *hsotg) +static void dwc2_clear_force_mode(struct dwc2_hsotg *hsotg) { u32 gusbcfg;