usb: composite: fix usb_function_activate/deactivate functions
authorRobert Baldyga <r.baldyga@samsung.com>
Mon, 4 May 2015 12:55:12 +0000 (14:55 +0200)
committerFelipe Balbi <balbi@ti.com>
Wed, 29 Jul 2015 14:59:19 +0000 (09:59 -0500)
commit5601250bb1b4e736cf487d332f2d8d8833a84209
treeec10a1510b9940af32642de211578b5f39d21bc4
parentccdf138fe3e243c70301fcb6a101e366b7daef07
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 <r.baldyga@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/composite.c