Skip to content

Commit

Permalink
USB: musb: musb_gadget: fix sparse warning
Browse files Browse the repository at this point in the history
Fix the following sparse warnings:

drivers/usb/musb/musb_gadget.c:1161:5: warning: symbol 'musb_gadget_set_halt' was not declared. Should it be static?

drivers/usb/musb/musb_gadget.c:1244:5: warning: symbol 'musb_gadget_set_wedge' was not declared. Should it be static?

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Felipe Balbi authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent ff85494 commit 1b6c3b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/musb/musb_gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@ static int musb_gadget_dequeue(struct usb_ep *ep, struct usb_request *request)
*
* exported to ep0 code
*/
int musb_gadget_set_halt(struct usb_ep *ep, int value)
static int musb_gadget_set_halt(struct usb_ep *ep, int value)
{
struct musb_ep *musb_ep = to_musb_ep(ep);
u8 epnum = musb_ep->current_epnum;
Expand Down Expand Up @@ -1296,7 +1296,7 @@ int musb_gadget_set_halt(struct usb_ep *ep, int value)
/*
* Sets the halt feature with the clear requests ignored
*/
int musb_gadget_set_wedge(struct usb_ep *ep)
static int musb_gadget_set_wedge(struct usb_ep *ep)
{
struct musb_ep *musb_ep = to_musb_ep(ep);

Expand Down

0 comments on commit 1b6c3b0

Please sign in to comment.