Skip to content

Commit 518868c

Browse files
arndbgregkh
authored andcommitted
usb: gadget: fix omap_udc build errors
1bf0cf6 "usb: gadget: omap_udc: convert to udc_start/udc_stop" made some trivial changes but was missing a ';' character. 8c4cc00 "ARM: OMAP1: DMA: Moving OMAP1 DMA channel definitions to mach-omap1" added a definition for OMAP_DMA_USB_W2FC_TX0 to the driver while making the header file it was defined in unavailable for drivers, but this driver actually needs OMAP_DMA_USB_W2FC_RX0 as well. Both changes appear trivial, so let's add the missing semicolon and the macro definition. Acked-by: Felipe Balbi <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ab4b716 commit 518868c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/usb/gadget/omap_udc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
#define DRIVER_VERSION "4 October 2004"
6363

6464
#define OMAP_DMA_USB_W2FC_TX0 29
65+
#define OMAP_DMA_USB_W2FC_RX0 26
6566

6667
/*
6768
* The OMAP UDC needs _very_ early endpoint setup: before enabling the
@@ -1310,7 +1311,7 @@ static int omap_pullup(struct usb_gadget *gadget, int is_on)
13101311
}
13111312

13121313
static int omap_udc_start(struct usb_gadget *g,
1313-
struct usb_gadget_driver *driver)
1314+
struct usb_gadget_driver *driver);
13141315
static int omap_udc_stop(struct usb_gadget *g,
13151316
struct usb_gadget_driver *driver);
13161317

0 commit comments

Comments
 (0)