USB: g_mass_storage: Always allow disabling mass storage by writing to lun file
authorMike Lockwood <lockwood@android.com>
Thu, 29 Jul 2010 18:42:24 +0000 (14:42 -0400)
committerColin Cross <ccross@android.com>
Thu, 30 Sep 2010 00:49:42 +0000 (17:49 -0700)
commitb4ff5d8efec50d4764579bee4fc3052bb9a9f2dc
tree23c6afbe21734956c6b4925a18e2269c9a826b31
parent88af8fe00c0d0e733cddac8d22b2f56a8894c5c5
USB: g_mass_storage: Always allow disabling mass storage by writing to lun file

For android builds we disable the check for curlun->prevent_medium_removal.
Instead we let the framework manage unmounting policy, as we sometimes need
to unmount after the media has been removed.
This also helps support hosts that do not inform the device when the media
has been unmounted.

Signed-off-by: Mike Lockwood <lockwood@android.com>
drivers/usb/gadget/storage_common.c