[PATCH] kill cdrom ->dev_ioctl method
Since early 2.4.x all cdrom drivers implement the block_device methods themselves, so they can handle additional ioctls directly instead of going through the cdrom layer. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Jens Axboe <axboe@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
d2c5d4fc07
commit
6a2900b676
@@ -407,7 +407,6 @@ int register_cdrom(struct cdrom_device_info *cdi)
|
||||
ENSURE(get_mcn, CDC_MCN);
|
||||
ENSURE(reset, CDC_RESET);
|
||||
ENSURE(audio_ioctl, CDC_PLAY_AUDIO);
|
||||
ENSURE(dev_ioctl, CDC_IOCTLS);
|
||||
ENSURE(generic_packet, CDC_GENERIC_PACKET);
|
||||
cdi->mc_flags = 0;
|
||||
cdo->n_minors = 0;
|
||||
@@ -2776,12 +2775,6 @@ int cdrom_ioctl(struct file * file, struct cdrom_device_info *cdi,
|
||||
return cdrom_ioctl_audioctl(cdi, cmd);
|
||||
}
|
||||
|
||||
/*
|
||||
* Finally, do the device specific ioctls
|
||||
*/
|
||||
if (CDROM_CAN(CDC_IOCTLS))
|
||||
return cdi->ops->dev_ioctl(cdi, cmd, arg);
|
||||
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user