aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb/musb_core.h
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2011-02-16 05:40:05 -0500
committerFelipe Balbi <balbi@ti.com>2011-02-17 14:11:46 -0500
commitad1adb89a0d9410345d573b6995a1fa9f9b7c74a (patch)
treeb07349993d6eec5dff875f5517b0c79667906a8b /drivers/usb/musb/musb_core.h
parent63eed2b52494e35aaf38ac2db537d6ea0a55b0da (diff)
usb: musb: gadget: do not poke with gadget's list_head
struct usb_request's list_head is supposed to be used only by gadget drivers, but musb is abusing that. Give struct musb_request its own list_head and prevent musb from poking into other driver's business. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb/musb_core.h')
-rw-r--r--drivers/usb/musb/musb_core.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/musb/musb_core.h b/drivers/usb/musb/musb_core.h
index d74a8113ae74..2c8dde6d23e0 100644
--- a/drivers/usb/musb/musb_core.h
+++ b/drivers/usb/musb/musb_core.h
@@ -328,7 +328,7 @@ struct musb_hw_ep {
328#endif 328#endif
329}; 329};
330 330
331static inline struct usb_request *next_in_request(struct musb_hw_ep *hw_ep) 331static inline struct musb_request *next_in_request(struct musb_hw_ep *hw_ep)
332{ 332{
333#ifdef CONFIG_USB_GADGET_MUSB_HDRC 333#ifdef CONFIG_USB_GADGET_MUSB_HDRC
334 return next_request(&hw_ep->ep_in); 334 return next_request(&hw_ep->ep_in);
@@ -337,7 +337,7 @@ static inline struct usb_request *next_in_request(struct musb_hw_ep *hw_ep)
337#endif 337#endif
338} 338}
339 339
340static inline struct usb_request *next_out_request(struct musb_hw_ep *hw_ep) 340static inline struct musb_request *next_out_request(struct musb_hw_ep *hw_ep)
341{ 341{
342#ifdef CONFIG_USB_GADGET_MUSB_HDRC 342#ifdef CONFIG_USB_GADGET_MUSB_HDRC
343 return next_request(&hw_ep->ep_out); 343 return next_request(&hw_ep->ep_out);