summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGrigor Tovmasyan <Grigor.Tovmasyan@synopsys.com>2018-01-19 14:43:01 +0400
committerFelipe Balbi <felipe.balbi@linux.intel.com>2018-03-13 10:47:58 +0200
commit365b7673c34fed58b0a04ee4a7a51102c65ccd2e (patch)
treee766c37d4ee29d6844440a1997a143d76fe10a4a /drivers
parent531ef5ebea96394ddb7f554d4d88e017dde30a59 (diff)
downloadlinux-365b7673c34fed58b0a04ee4a7a51102c65ccd2e.tar.bz2
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 <johnyoun@synopsys.com> Signed-off-by: Grigor Tovmasyan <tovmasya@synopsys.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/dwc2/core.c2
1 files changed, 1 insertions, 1 deletions
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;