Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee89b641 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Felipe Balbi
Browse files

usb: dwc2: USB_DWC2 should depend on HAS_DMA



If NO_DMA=y:

    ERROR: "usb_gadget_map_request" [drivers/usb/dwc2/dwc2.ko] undefined!
    ERROR: "usb_gadget_unmap_request" [drivers/usb/dwc2/dwc2.ko] undefined!
    ERROR: "bad_dma_ops" [drivers/usb/dwc2/dwc2.ko] undefined!

Add a dependency on HAS_DMA to fix this.

Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Acked-by: default avatarJohn Youn <johnyoun@synopsys.com>
Signed-off-by: default avatarFelipe Balbi <balbi@kernel.org>
parent 62943b7d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
config USB_DWC2
	tristate "DesignWare USB2 DRD Core Support"
	depends on HAS_DMA
	depends on USB || USB_GADGET
	help
	  Say Y here if your system has a Dual Role Hi-Speed USB