diff options
Diffstat (limited to 'drivers/ide/ide-cd_ioctl.c')
| -rw-r--r-- | drivers/ide/ide-cd_ioctl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/ide/ide-cd_ioctl.c b/drivers/ide/ide-cd_ioctl.c index 2a6bc50e8a41..02caa7dd51c8 100644 --- a/drivers/ide/ide-cd_ioctl.c +++ b/drivers/ide/ide-cd_ioctl.c | |||
| @@ -79,6 +79,12 @@ int ide_cdrom_drive_status(struct cdrom_device_info *cdi, int slot_nr) | |||
| 79 | return CDS_DRIVE_NOT_READY; | 79 | return CDS_DRIVE_NOT_READY; |
| 80 | } | 80 | } |
| 81 | 81 | ||
| 82 | /* | ||
| 83 | * ide-cd always generates media changed event if media is missing, which | ||
| 84 | * makes it impossible to use for proper event reporting, so disk->events | ||
| 85 | * is cleared to 0 and the following function is used only to trigger | ||
| 86 | * revalidation and never propagated to userland. | ||
| 87 | */ | ||
| 82 | unsigned int ide_cdrom_check_events_real(struct cdrom_device_info *cdi, | 88 | unsigned int ide_cdrom_check_events_real(struct cdrom_device_info *cdi, |
| 83 | unsigned int clearing, int slot_nr) | 89 | unsigned int clearing, int slot_nr) |
| 84 | { | 90 | { |
