From: Geert Uytterhoeven Date: Tue, 16 Feb 2016 15:10:59 +0000 (+0100) Subject: usb: dwc2: USB_DWC2 should depend on HAS_DMA X-Git-Tag: v4.14-rc1~3758^2^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ee89b641a9ddca5f2d1e38d205473c4b0d26c670;p=platform%2Fkernel%2Flinux-rpi.git 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: Geert Uytterhoeven Acked-by: John Youn Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/dwc2/Kconfig b/drivers/usb/dwc2/Kconfig index fd95ba6..f0decc0 100644 --- a/drivers/usb/dwc2/Kconfig +++ b/drivers/usb/dwc2/Kconfig @@ -1,5 +1,6 @@ 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