diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2016-02-16 16:10:59 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@kernel.org> | 2016-02-17 10:32:18 +0200 |
commit | ee89b641a9ddca5f2d1e38d205473c4b0d26c670 (patch) | |
tree | 507c44de3af35b634834f8ffdf5cfad91648efd8 /drivers/usb | |
parent | 62943b7dfa35887a40f71f698deec4488bf73036 (diff) | |
download | linux-ee89b641a9ddca5f2d1e38d205473c4b0d26c670.tar.gz linux-ee89b641a9ddca5f2d1e38d205473c4b0d26c670.tar.xz |
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 <geert@linux-m68k.org>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/dwc2/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/dwc2/Kconfig b/drivers/usb/dwc2/Kconfig index fd95ba6ec317..f0decc0d69b5 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 |