diff options
author | Andrzej Pietrasiewicz <andrzej.p@samsung.com> | 2012-03-12 12:55:41 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-04-10 19:11:47 +0300 |
commit | e2190a97c6d493eef1f180b9dadfd5ffd4706051 (patch) | |
tree | 48f688918c19cdf961779ff6477a3e9aae7d74b7 /drivers | |
parent | 64b6c8a7019acc38cc6b37f8e72c1e915593b1bb (diff) | |
download | linux-stable-e2190a97c6d493eef1f180b9dadfd5ffd4706051.tar.gz linux-stable-e2190a97c6d493eef1f180b9dadfd5ffd4706051.tar.bz2 linux-stable-e2190a97c6d493eef1f180b9dadfd5ffd4706051.zip |
usb: gadget: FunctionFS: clear FFS_FL_BOUND flag on unbind (bugfix)
clear FFS_FL_BOUND flag on unbind (bugfix)
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/f_fs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_fs.c b/drivers/usb/gadget/f_fs.c index 1cbba70836bc..d187ae73262b 100644 --- a/drivers/usb/gadget/f_fs.c +++ b/drivers/usb/gadget/f_fs.c @@ -1382,6 +1382,7 @@ static void functionfs_unbind(struct ffs_data *ffs) ffs->ep0req = NULL; ffs->gadget = NULL; ffs_data_put(ffs); + clear_bit(FFS_FL_BOUND, &ffs->flags); } } |