usb: gadget: zero: put function instances on unbind
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Thu, 18 Apr 2013 12:43:26 +0000 (14:43 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 23 Apr 2013 11:12:21 +0000 (14:12 +0300)
commitabe7a4097dd0141d21d02e4bd949b377a0a75120
tree3e3f446f518fcca9886428eb7097fc44310c1109
parent9890e33013fae0d67cd385d2038fcab4e52a6632
usb: gadget: zero: put function instances on unbind

If function instances are not put on gadget's unbind, their implementation
module's refcount is nonzero and it is impossible to unload them.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/zero.c