Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cdrom: support devices that have check_events but not media_changed
Commit 93aae17 ("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]>
- Loading branch information