usb: gadget: USB_RENESAS_USBHS_UDC should depend on HAS_DMA
authorGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 29 Aug 2014 19:31:40 +0000 (21:31 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 2 Sep 2014 14:16:45 +0000 (09:16 -0500)
If NO_DMA=y:

drivers/built-in.o: In function `usbhsg_dma_map_ctrl':
mod_gadget.c:(.text+0x53b226): undefined reference to `usb_gadget_map_request'
mod_gadget.c:(.text+0x53b242): undefined reference to `usb_gadget_unmap_request'

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/Kconfig

index 5151f947a4f56119e56c9e6d445df29b4f1a6314..00171d436cf86b966fcbd5a25362cf76688d3a2c 100644 (file)
@@ -163,7 +163,7 @@ config USB_R8A66597
 
 config USB_RENESAS_USBHS_UDC
        tristate 'Renesas USBHS controller'
-       depends on USB_RENESAS_USBHS
+       depends on USB_RENESAS_USBHS && HAS_DMA
        help
           Renesas USBHS is a discrete USB host and peripheral controller chip
           that supports both full and high speed USB 2.0 data transfers.