patch-2.3.38 linux/drivers/cdrom/cdrom.c
Next file: linux/drivers/cdrom/gscd.c
Previous file: linux/drivers/cdrom/aztcd.c
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Fri Jan 7 11:38:05 2000
- Orig file:
v2.3.37/linux/drivers/cdrom/cdrom.c
- Orig date:
Tue Jan 4 13:57:16 2000
diff -u --recursive --new-file v2.3.37/linux/drivers/cdrom/cdrom.c linux/drivers/cdrom/cdrom.c
@@ -291,22 +291,12 @@
#endif /* CONFIG_SYSCTL */
static struct cdrom_device_info *topCdromPtr = NULL;
-struct file_operations cdrom_fops =
+struct block_device_operations cdrom_fops =
{
- NULL, /* lseek */
- block_read, /* read - general block-dev read */
- block_write, /* write - general block-dev write */
- NULL, /* readdir */
- NULL, /* poll */
- cdrom_ioctl, /* ioctl */
- NULL, /* mmap */
- cdrom_open, /* open */
- NULL, /* flush */
- cdrom_release, /* release */
- NULL, /* fsync */
- NULL, /* fasync */
- cdrom_media_changed, /* media_change */
- NULL /* revalidate */
+ open: cdrom_open,
+ release: cdrom_release,
+ ioctl: cdrom_ioctl,
+ check_media_change: cdrom_media_changed,
};
/* This macro makes sure we don't have to check on cdrom_device_ops
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)