usb: gadget: USB_NET2272_DMA should depend on HAS_DMA

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>
This commit is contained in:
Geert Uytterhoeven 2013-08-18 22:20:43 +02:00 committed by Felipe Balbi
parent 4ee4f23bb0
commit 272b05a988

View file

@ -386,7 +386,7 @@ config USB_NET2272
config USB_NET2272_DMA config USB_NET2272_DMA
boolean "Support external DMA controller" boolean "Support external DMA controller"
depends on USB_NET2272 depends on USB_NET2272 && HAS_DMA
help help
The NET2272 part can optionally support an external DMA The NET2272 part can optionally support an external DMA
controller, but your board has to have support in the controller, but your board has to have support in the