commit | 56703d11362649105ede114a7821106c9408bdc0 | [log] [tgz] |
---|---|---|
author | Liangliang Lu <luliang@codeaurora.org> | Wed May 03 16:06:35 2017 +0800 |
committer | Mayank Rana <mrana@codeaurora.org> | Fri Aug 04 10:11:05 2017 -0700 |
tree | f85b4a6747cb90504ce4ef298229a92df3b3f45a | |
parent | b28d3e89a6e635ff89b903f797e37b601fb98700 [diff] |
usb: gadget: mtp: Move mutex_init() to alloc_inst_mtp_ptp() Now mutex_init() is in function_alloc_mtp_ptp() which will be called when USB composition change. In the corner case, USB composition change when do mtp_read(), the mutex lock is initialized when do mutex_lock(). Change-Id: I7a61f6fe6d8865462c5445f7075722f4f151b03f Signed-off-by: Liangliang Lu <luliang@codeaurora.org>