usb: gadget: storage_common: pass filesem to fsg_store_cdrom
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Tue, 15 Oct 2013 06:33:13 +0000 (08:33 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 15 Oct 2013 11:52:08 +0000 (06:52 -0500)
commitb8798636798ee04feb0f1bb87eec0027e3f68d98
treee1fd22c9a2743d1d383d9ffc7dfcb7871b94c722
parent81a1d5ea6670acecf1366cd6a4d328c123bdf9fa
usb: gadget: storage_common: pass filesem to fsg_store_cdrom

If cdrom flag is set ro flag is implied. Try setting the ro first, and
only if it succeeds set the cdrom flag.

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>
drivers/usb/gadget/f_mass_storage.c
drivers/usb/gadget/storage_common.c
drivers/usb/gadget/storage_common.h