android_kernel_motorola_sm6375/drivers/cdrom
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Simon Arlott b8cf0e0e55 cdrom: support devices that have check_events but not media_changed
Commit 93aae17af1 ("sr: implement
sr_check_events()") replaced the media_changed op with the
check_events op in drivers/scsi/sr.c

All users that check for the CDC_MEDIA_CHANGED capbility try both
the check_events op and the media_changed op, but register_cdrom()
was requiring media_changed.

This patch fixes the capability checking.

The cdrom_select_disc ioctl is also using the two operations, so
they should be required for CDC_SELECT_DISC too.

Signed-off-by: Simon Arlott <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: Kay Sievers <[email protected]>
Tested-by: Chris Clayton <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
2011-02-09 14:22:37 +01:00
..
cdrom.c cdrom: support devices that have check_events but not media_changed 2011-02-09 14:22:37 +01:00
gdrom.c gdrom: don't use flush_scheduled_work() 2010-12-24 15:59:06 +01:00
Makefile
viocd.c block: autoconvert trivial BKL users to private mutex 2010-10-05 15:01:10 +02:00