From: Robert Baldyga Date: Mon, 4 May 2015 12:55:12 +0000 (+0200) Subject: usb: composite: fix usb_function_activate/deactivate functions X-Git-Tag: omap-for-v4.3/fixes-merge-window~42^2~35^2~117 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5601250bb1b4e736cf487d332f2d8d8833a84209;p=pandora-kernel.git usb: composite: fix usb_function_activate/deactivate functions Using usb_gadget_disconnect to make gadget temporarily invisible to host doesn't provide desired result, because gadget is connected immediately after binding regardless to previous usb_gadget_disconnect() calls. For this reason we use usb_gadget_deactivate() instead of usb_gadget_disconnect() to make it working as expected. Signed-off-by: Robert Baldyga Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed