summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/atmel_usba_udc.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-12-16 15:14:23 +0900
committerFelipe Balbi <balbi@ti.com>2013-12-17 13:17:42 -0600
commit5056ee83e8e9b3b3eec895f8bb0804a802fb61d2 (patch)
tree4f81eabdf85d268255c15dfb2aff87711ef21a4a /drivers/usb/gadget/atmel_usba_udc.c
parent40a8fb2a671319c589baa9995e7b6f3b8c72c30c (diff)
downloadlwn-5056ee83e8e9b3b3eec895f8bb0804a802fb61d2.tar.gz
lwn-5056ee83e8e9b3b3eec895f8bb0804a802fb61d2.zip
usb: gadget: atmel_usba: Fix sparse warning
'usba_gadget_template' is used only in this file. Thus, make 'usba_gadget_template' static, in order to fix the following sparse warning. warning: symbol 'usba_gadget_template' was not declared. Should it be static? Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/atmel_usba_udc.c')
-rw-r--r--drivers/usb/gadget/atmel_usba_udc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/atmel_usba_udc.c b/drivers/usb/gadget/atmel_usba_udc.c
index bb1eb4220785..38bf67b1a97d 100644
--- a/drivers/usb/gadget/atmel_usba_udc.c
+++ b/drivers/usb/gadget/atmel_usba_udc.c
@@ -1012,7 +1012,7 @@ static void nop_release(struct device *dev)
}
-struct usb_gadget usba_gadget_template = {
+static struct usb_gadget usba_gadget_template = {
.ops = &usba_udc_ops,
.max_speed = USB_SPEED_HIGH,
.name = "atmel_usba_udc",