On 2/15/2016 3:21 AM, Geert Uytterhoeven wrote:
> 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 <[email protected]>
> ---
>  drivers/usb/dwc2/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/usb/dwc2/Kconfig b/drivers/usb/dwc2/Kconfig
> index fd95ba6ec317fdac..f0decc0d69b5197d 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
> 


Acked-by: John Youn <[email protected]>



--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to