usb: gadget: USB_NET2272_DMA should depend on HAS_DMA
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 18 Aug 2013 20:20:43 +0000 (22:20 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 27 Aug 2013 19:17:01 +0000 (14:17 -0500)
If NO_DMA=y:

drivers/built-in.o: In function `net2272_done':
drivers/usb/gadget/net2272.c:386: undefined reference to `usb_gadget_unmap_request'
drivers/built-in.o: In function `net2272_queue':
drivers/usb/gadget/net2272.c:848: undefined reference to `usb_gadget_map_request'

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

index e1b64c47d1f732d47970070c0d166f793b8e8dee..30e2dd8a1f2c42c87ed16aedf1d7f3bb9cefa104 100644 (file)
@@ -386,7 +386,7 @@ config USB_NET2272
 
 config USB_NET2272_DMA
        boolean "Support external DMA controller"
-       depends on USB_NET2272
+       depends on USB_NET2272 && HAS_DMA
        help
          The NET2272 part can optionally support an external DMA
          controller, but your board has to have support in the