Files
linux/drivers/cdrom
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
..