From: Peter Chen Date: Mon, 22 Sep 2014 00:14:16 +0000 (+0800) Subject: usb: chipidea: otg initialization is only needed when the gadget is supported X-Git-Tag: fixes-for-v3.18-merge-window~16^2~97 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27c62c2da177178771517744acaced08767214e2;p=pandora-kernel.git usb: chipidea: otg initialization is only needed when the gadget is supported We have only needed to enable otg initialization when both of below conditions are satisfied: - The controller is otg capable - The gadget function is enabled If the controller is otg capable, but is host-only configuration, we do not need to access register otgsc and do any otg operations (eg, create otg workqueue). Signed-off-by: Peter Chen Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed