From: Marek Szyprowski Date: Tue, 10 Mar 2015 12:41:10 +0000 (+0100) Subject: usb: dwc2: rework initialization of host and gadget in dual-role mode X-Git-Tag: omap-for-v4.2/o2_dc~157^2~55^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e39af88f18dfe9a7938765c97ce9ed448915e6d5;p=pandora-kernel.git usb: dwc2: rework initialization of host and gadget in dual-role mode If device is configured to work only in HOST or DEVICE mode, there is no point in initializing both subdrivers. This patch also fixes resource leakage if host subdriver fails to initialize. Acked-by: John Youn Signed-off-by: Marek Szyprowski Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed