diff options
author | Felipe Balbi <balbi@ti.com> | 2011-11-04 06:40:05 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-12-12 04:48:29 -0500 |
commit | 8becf2704415d2bf471a0a73ae84c3cc24da8a90 (patch) | |
tree | 58a63748ec9704488066c390ae32d8a6bfef768d /drivers/usb/dwc3 | |
parent | 25b8ff68bf1d4954d4a9dcb4862c6b6a53cb09e2 (diff) |
usb: dwc3: fix sparse errors
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>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r-- | drivers/usb/dwc3/debugfs.c | 1 | ||||
-rw-r--r-- | drivers/usb/dwc3/ep0.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/debugfs.c b/drivers/usb/dwc3/debugfs.c index e78abb438b4b..87d403df1f3f 100644 --- a/drivers/usb/dwc3/debugfs.c +++ b/drivers/usb/dwc3/debugfs.c | |||
@@ -49,6 +49,7 @@ | |||
49 | #include "core.h" | 49 | #include "core.h" |
50 | #include "gadget.h" | 50 | #include "gadget.h" |
51 | #include "io.h" | 51 | #include "io.h" |
52 | #include "debug.h" | ||
52 | 53 | ||
53 | struct dwc3_register { | 54 | struct dwc3_register { |
54 | const char *name; | 55 | const char *name; |
diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c index 861a41aa87d2..86d7b6de68f9 100644 --- a/drivers/usb/dwc3/ep0.c +++ b/drivers/usb/dwc3/ep0.c | |||
@@ -803,7 +803,7 @@ static void dwc3_ep0_xfernotready(struct dwc3 *dwc, | |||
803 | } | 803 | } |
804 | 804 | ||
805 | void dwc3_ep0_interrupt(struct dwc3 *dwc, | 805 | void dwc3_ep0_interrupt(struct dwc3 *dwc, |
806 | const const struct dwc3_event_depevt *event) | 806 | const struct dwc3_event_depevt *event) |
807 | { | 807 | { |
808 | u8 epnum = event->endpoint_number; | 808 | u8 epnum = event->endpoint_number; |
809 | 809 | ||