Commit 272b05a9 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Felipe Balbi

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: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 4ee4f23b
...@@ -386,7 +386,7 @@ config USB_NET2272 ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment