summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/tcm_usb_gadget.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-11-25 21:19:41 +0400
committerFelipe Balbi <balbi@ti.com>2013-11-25 21:19:41 +0400
commit3f79265c964ed501cd61eddfc893262d04a6aa4a (patch)
treedf8fd8f35d1fa9ac1bfc452e236e175ed78dd6b0 /drivers/usb/gadget/tcm_usb_gadget.c
parent63b12e3ecebd2904ee2e6c59911c7a44a0b18fa5 (diff)
downloadlinux-3f79265c964ed501cd61eddfc893262d04a6aa4a.tar.xz
usb: gadget: tcm_usb_gadget: mark bot_cleanup_old_alt static
that symbol is only used inside this function driver, we should mark it static. Fixes sparse's: drivers/usb/gadget/tcm_usb_gadget.c:373:6: warning: symbol \ 'bot_cleanup_old_alt' was not declared. Should it \ be static? Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/tcm_usb_gadget.c')
-rw-r--r--drivers/usb/gadget/tcm_usb_gadget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/tcm_usb_gadget.c b/drivers/usb/gadget/tcm_usb_gadget.c
index 6c3d7950d2a9..0f8aad78b54f 100644
--- a/drivers/usb/gadget/tcm_usb_gadget.c
+++ b/drivers/usb/gadget/tcm_usb_gadget.c
@@ -370,7 +370,7 @@ err:
return -ENOMEM;
}
-void bot_cleanup_old_alt(struct f_uas *fu)
+static void bot_cleanup_old_alt(struct f_uas *fu)
{
if (!(fu->flags & USBG_ENABLED))
return;