summaryrefslogtreecommitdiff
path: root/drivers/usb/musb/musb_gadget.h
diff options
context:
space:
mode:
authorSergei Shtylyov <sshtylyov@ru.mvista.com>2009-11-18 22:54:32 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2009-12-11 22:55:25 +0300
commit46034dca515bc4ddca0399ae58106d1f5f0d809f (patch)
treeea4a13b7f5ce2099470ed0d888cabf5cde0004f4 /drivers/usb/musb/musb_gadget.h
parent47e9760529a9823be59d879f726acdc7e2fcbe11 (diff)
downloadlinux-46034dca515bc4ddca0399ae58106d1f5f0d809f.tar.xz
USB: musb_gadget_ep0: stop abusing musb_gadget_set_halt()
Stop playing with musb->lock and abusing musb_gadget_set_halt() in the code clearing the endpoint halt feature -- instead, manipulate the registers directly. While at it, get rid uf unneeded line breaks and over-indentation in the code setting the endpoint halt feature. Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/musb/musb_gadget.h')
-rw-r--r--drivers/usb/musb/musb_gadget.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/musb/musb_gadget.h b/drivers/usb/musb/musb_gadget.h
index 90966695ae53..c8b140325d82 100644
--- a/drivers/usb/musb/musb_gadget.h
+++ b/drivers/usb/musb/musb_gadget.h
@@ -105,6 +105,4 @@ extern void musb_gadget_cleanup(struct musb *);
extern void musb_g_giveback(struct musb_ep *, struct usb_request *, int);
-extern int musb_gadget_set_halt(struct usb_ep *ep, int value);
-
#endif /* __MUSB_GADGET_H */