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>
This commit is contained in:
committed by
Felipe Balbi
parent
64b6c8a701
commit
e2190a97c6
@@ -1382,6 +1382,7 @@ static void functionfs_unbind(struct ffs_data *ffs)
|
|||||||
ffs->ep0req = NULL;
|
ffs->ep0req = NULL;
|
||||||
ffs->gadget = NULL;
|
ffs->gadget = NULL;
|
||||||
ffs_data_put(ffs);
|
ffs_data_put(ffs);
|
||||||
|
clear_bit(FFS_FL_BOUND, &ffs->flags);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user