]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
usb: dwc3: fix sparse errors
authorFelipe Balbi <balbi@ti.com>
Fri, 4 Nov 2011 10:40:05 +0000 (12:40 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 12 Dec 2011 09:48:29 +0000 (11:48 +0200)
sparse caught three mistakes on this driver,
fix them:

drivers/usb/dwc3/ep0.c:806:29: warning: duplicate const
drivers/usb/dwc3/debugfs.c:481:15: warning: symbol 'dwc3_debugfs_init' \
was not declared. Should it be static?
drivers/usb/dwc3/debugfs.c:518:16: warning: symbol 'dwc3_debugfs_exit' \
was not declared. Should it be static?

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/debugfs.c
drivers/usb/dwc3/ep0.c

index e78abb438b4b3e6fb7c6266c70a4041e65d87079..87d403df1f3f763787c1c905282f05141a0c96c5 100644 (file)
@@ -49,6 +49,7 @@
 #include "core.h"
 #include "gadget.h"
 #include "io.h"
+#include "debug.h"
 
 struct dwc3_register {
        const char      *name;
index 861a41aa87d20c0c5bea48c40411a2e588e4a533..86d7b6de68f9a95b74c07326192f5aaa3f129d61 100644 (file)
@@ -803,7 +803,7 @@ static void dwc3_ep0_xfernotready(struct dwc3 *dwc,
 }
 
 void dwc3_ep0_interrupt(struct dwc3 *dwc,
-               const const struct dwc3_event_depevt *event)
+               const struct dwc3_event_depevt *event)
 {
        u8                      epnum = event->endpoint_number;