From: Dinh Nguyen Date: Tue, 11 Nov 2014 17:13:39 +0000 (-0600) Subject: usb: dwc2: move usb_disabled() call to host driver only X-Git-Tag: omap-for-v3.19/fixes-rc1~87^2~32^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5500ecc90a887d7e65274817733fbe477070559;p=pandora-kernel.git 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 Signed-off-by: Dinh Nguyen Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed