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)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:05:52 +0000 (12:05 -0800)
commit15db7cffa218196f42e1681d0577720faf894c1c
treeea13ca2c0634183048e86f2f5814940408bf5767
parent848d0054a015487af275edfa504795aa4d032945
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