]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/ide/ide-cd.c
cdrom: Make device operations read-only
[karo-tx-linux.git] / drivers / ide / ide-cd.c
index 9cbd217bc0c9201c63ca3573ab95749789595a55..ab9232e1e16f39f4196f4465d80f5dc506cf7af0 100644 (file)
@@ -1166,7 +1166,7 @@ void ide_cdrom_update_speed(ide_drive_t *drive, u8 *buf)
         CDC_CD_RW | CDC_DVD | CDC_DVD_R | CDC_DVD_RAM | CDC_GENERIC_PACKET | \
         CDC_MO_DRIVE | CDC_MRW | CDC_MRW_W | CDC_RAM)
 
-static struct cdrom_device_ops ide_cdrom_dops = {
+static const struct cdrom_device_ops ide_cdrom_dops = {
        .open                   = ide_cdrom_open_real,
        .release                = ide_cdrom_release_real,
        .drive_status           = ide_cdrom_drive_status,