diff options
author | Randy Dunlap <rdunlap@xenotime.net> | 2011-08-23 15:52:47 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-24 18:06:53 -0400 |
commit | 096cb25d624289a054c9e4d0537c26c0a5eff487 (patch) | |
tree | ae60e64693511d517cfcc3c614e95a3ac1667d1e /drivers/usb/dwc3/gadget.h | |
parent | 29cc88979a8818cd8c5019426e945aed118b400e (diff) |
usb: fix dwc3 build when USB_GADGET_DWC3 is not enabled
Fix build error when CONFIG_USB_GADGET_DWC3 is not enabled:
ERROR: "dwc3_send_gadget_ep_cmd" [drivers/usb/dwc3/dwc3.ko] undefined!
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/dwc3/gadget.h')
-rw-r--r-- | drivers/usb/dwc3/gadget.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/gadget.h b/drivers/usb/dwc3/gadget.h index ccfc109f0902..4809ac8d9a79 100644 --- a/drivers/usb/dwc3/gadget.h +++ b/drivers/usb/dwc3/gadget.h | |||
@@ -202,6 +202,11 @@ void dwc3_gadget_exit(struct dwc3 *dwc); | |||
202 | #else | 202 | #else |
203 | static inline int dwc3_gadget_init(struct dwc3 *dwc) { return 0; } | 203 | static inline int dwc3_gadget_init(struct dwc3 *dwc) { return 0; } |
204 | static inline void dwc3_gadget_exit(struct dwc3 *dwc) { } | 204 | static inline void dwc3_gadget_exit(struct dwc3 *dwc) { } |
205 | static inline int dwc3_send_gadget_ep_cmd(struct dwc3 *dwc, unsigned ep, | ||
206 | unsigned cmd, struct dwc3_gadget_ep_cmd_params *params) | ||
207 | { | ||
208 | return 0; | ||
209 | } | ||
205 | #endif | 210 | #endif |
206 | 211 | ||
207 | void dwc3_gadget_giveback(struct dwc3_ep *dep, struct dwc3_request *req, | 212 | void dwc3_gadget_giveback(struct dwc3_ep *dep, struct dwc3_request *req, |