usb: dwc2: allow dwc2 to get built when USB_GADGET=m
authorDinh Nguyen <dinguyen@opensource.altera.com>
Tue, 21 Oct 2014 20:31:42 +0000 (15:31 -0500)
committerFelipe Balbi <balbi@ti.com>
Mon, 3 Nov 2014 16:05:07 +0000 (10:05 -0600)
This patch allows the gadget portion of the DWC2 driver to get built when
(!USB && USB_GADGET) condition is encountered.

Acked-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/Kconfig

index f93807b3631a82c49d6b9a68726a8c756b34658f..4d027180cea160224a537662fb415eae2c610624 100644 (file)
@@ -1,6 +1,6 @@
 config USB_DWC2
        bool "DesignWare USB2 DRD Core Support"
-       depends on USB
+       depends on USB || USB_GADGET
        help
          Say Y here if your system has a Dual Role Hi-Speed USB
          controller based on the DesignWare HSOTG IP Core.