diff options
author | Felipe Balbi <balbi@ti.com> | 2013-03-22 11:01:42 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-03-27 07:19:00 -0400 |
commit | 6fbb2f7daeeeb0865fc9b7799607f4cb5481a96e (patch) | |
tree | d1d3b8f7aab847d48821beb6090186fee531f83d /drivers/usb/gadget | |
parent | 94a06018dead7fc5f92238ececf31ed601ee528c (diff) |
usb: gadget: mv_u3d: fix sparse warnings
fix the following sparse warnings:
drivers/usb/gadget/mv_u3d_core.c:223:20: warning: context imbalance in 'mv_u3d_done' - unexpected unlock
drivers/usb/gadget/mv_u3d_core.c:1562:25: warning: context imbalance in 'mv_u3d_handle_setup_packet' - unexpected unlock
Note that the non-trivial sparse warnings
are left out of this commit due to lack of
HW to test:
drivers/usb/gadget/mv_u3d_core.c:906:42: warning: incorrect type in argument 2 (different address spaces)
drivers/usb/gadget/mv_u3d_core.c:906:42: expected void [noderef] <asn:2>*<noident>
drivers/usb/gadget/mv_u3d_core.c:906:42: got unsigned int *<noident>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r-- | drivers/usb/gadget/mv_u3d_core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/gadget/mv_u3d_core.c b/drivers/usb/gadget/mv_u3d_core.c index 5a6f87cf718a..9675227a9529 100644 --- a/drivers/usb/gadget/mv_u3d_core.c +++ b/drivers/usb/gadget/mv_u3d_core.c | |||
@@ -186,6 +186,8 @@ static int mv_u3d_process_ep_req(struct mv_u3d *u3d, int index, | |||
186 | */ | 186 | */ |
187 | static | 187 | static |
188 | void mv_u3d_done(struct mv_u3d_ep *ep, struct mv_u3d_req *req, int status) | 188 | void mv_u3d_done(struct mv_u3d_ep *ep, struct mv_u3d_req *req, int status) |
189 | __releases(&ep->udc->lock) | ||
190 | __acquires(&ep->udc->lock) | ||
189 | { | 191 | { |
190 | struct mv_u3d *u3d = (struct mv_u3d *)ep->u3d; | 192 | struct mv_u3d *u3d = (struct mv_u3d *)ep->u3d; |
191 | 193 | ||
@@ -1520,6 +1522,8 @@ static int mv_u3d_is_set_configuration(struct usb_ctrlrequest *setup) | |||
1520 | 1522 | ||
1521 | static void mv_u3d_handle_setup_packet(struct mv_u3d *u3d, u8 ep_num, | 1523 | static void mv_u3d_handle_setup_packet(struct mv_u3d *u3d, u8 ep_num, |
1522 | struct usb_ctrlrequest *setup) | 1524 | struct usb_ctrlrequest *setup) |
1525 | __releases(&u3c->lock) | ||
1526 | __acquires(&u3c->lock) | ||
1523 | { | 1527 | { |
1524 | bool delegate = false; | 1528 | bool delegate = false; |
1525 | 1529 | ||