Browse Source

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>
Geert Uytterhoeven 12 năm trước cách đây
mục cha
commit
272b05a988
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      drivers/usb/gadget/Kconfig

+ 1 - 1
drivers/usb/gadget/Kconfig

@@ -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