1
0
Fork 0
alistair23-linux/drivers/usb/dwc2
Dinh Nguyen f5500ecc90 usb: dwc2: move usb_disabled() call to host driver only
Since platform.c will get built for both Host and Gadget, if we leave the
usb_disabled() call in platform.c, it results in the following build error
when (!USB && USB_GADGET) condition is met.

ERROR: "usb_disabled" [drivers/usb/dwc2/dwc2_platform.ko] undefined!

Since usb_disabled() is mostly used to disable USB host functionality, move
the call the host portion for the DWC2 driver.

Acked-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2014-11-14 15:00:03 -06:00
..
Kconfig usb: dwc2: allow dwc2 to get built when USB_GADGET=m 2014-11-03 10:05:07 -06:00
Makefile Revert "usb: dwc2: Update Kconfig to support dual-role" 2014-09-11 13:45:13 -07:00
core.c usb: dwc2: Update common interrupt handler to call gadget interrupt handler 2014-11-14 14:59:48 -06:00
core.h usb: dwc2: Initialize the USB core for peripheral mode 2014-11-14 14:59:43 -06:00
core_intr.c usb: dwc2: Move gadget probe function into platform code 2014-11-14 14:59:32 -06:00
gadget.c usb: dwc2: gadget: Do not fail probe if there isn't a clock node 2014-11-14 14:59:52 -06:00
hcd.c usb: dwc2: move usb_disabled() call to host driver only 2014-11-14 15:00:03 -06:00
hcd.h usb: dwc2: Move gadget probe function into platform code 2014-11-14 14:59:32 -06:00
hcd_ddma.c
hcd_intr.c usb: dwc2: handle DMA buffer unmapping sanely 2014-09-19 16:17:58 -07:00
hcd_queue.c usb: dwc2: handle DMA buffer unmapping sanely 2014-09-19 16:17:58 -07:00
hw.h usb: dwc2: add defines to support s3c-hsotg driver 2014-04-24 13:12:43 -07:00
pci.c usb: dwc2: Update common interrupt handler to call gadget interrupt handler 2014-11-14 14:59:48 -06:00
platform.c usb: dwc2: move usb_disabled() call to host driver only 2014-11-14 15:00:03 -06:00