From: Robert Baldyga Date: Mon, 4 May 2015 12:55:15 +0000 (+0200) Subject: usb: gadget: f_obex: use bind_deactivated flag X-Git-Tag: omap-for-v4.3/fixes-merge-window~42^2~35^2~114 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cfbd95232dd6194c04d432d1a8ac45cec269d8b;p=pandora-kernel.git usb: gadget: f_obex: use bind_deactivated flag Use bind_deactivated flag instead of calling usb_function_deactivate() in function bind(). Field 'can_activate' in struct f_obex is no longer needed as setting 'bind_deactivated' flag makes us sure, that the function will be binded only if deactivation can be performed successfully. Signed-off-by: Robert Baldyga Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed