patch-pre2.0.3 linux/drivers/cdrom/cdrom.c

Next file: linux/drivers/cdrom/cm206.c
Previous file: linux/drivers/block/linear.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file pre2.0.2/linux/drivers/cdrom/cdrom.c linux/drivers/cdrom/cdrom.c
@@ -28,7 +28,7 @@
 void cdrom_release(struct inode *ip, struct file *fp);
 int cdrom_ioctl(struct inode *ip, struct file *fp,
 				unsigned int cmd, unsigned long arg);
-int cdrom_media_changed(dev_t dev);
+int cdrom_media_changed(kdev_t dev);
 
 struct file_operations cdrom_fops =
 {
@@ -107,11 +107,11 @@
  * is in their own interest: device control becomes a lot easier
  * this way.
  */
-int open_for_data(struct cdrom_device_ops *, int);
+int open_for_data(struct cdrom_device_ops *, kdev_t);
 
 int cdrom_open(struct inode *ip, struct file *fp)
 {
-        dev_t dev = ip->i_rdev;
+	kdev_t dev = ip->i_rdev;
         struct cdrom_device_ops *cdo = cdromdevs[MAJOR(dev)];
         int purpose = !!(fp->f_flags & O_NONBLOCK);
 
@@ -126,7 +126,7 @@
                 return open_for_data(cdo, dev);
 }
 
-int open_for_data(struct cdrom_device_ops * cdo, int dev)
+int open_for_data(struct cdrom_device_ops * cdo, kdev_t dev)
 {
         int ret;
         if (cdo->drive_status != NULL) {
@@ -163,7 +163,7 @@
 /* Admittedly, the logic below could be performed in a nicer way. */
 void cdrom_release(struct inode *ip, struct file *fp)
 {
-        dev_t dev = ip->i_rdev;
+        kdev_t dev = ip->i_rdev;
         struct cdrom_device_ops *cdo = cdromdevs[MAJOR(dev)];
 	
         if (cdo == NULL || MINOR(dev) >= cdo->minors)
@@ -192,7 +192,7 @@
  * in the lower 16 bits, queue 1 in the higher 16 bits.
  */
 
-int media_changed(dev_t dev, int queue)
+int media_changed(kdev_t dev, int queue)
 {
         unsigned int major = MAJOR(dev);
         unsigned int minor = MINOR(dev);
@@ -212,7 +212,7 @@
         return ret;
 }
 
-int cdrom_media_changed(dev_t dev)
+int cdrom_media_changed(kdev_t dev)
 {
         struct cdrom_device_ops *cdo = cdromdevs[MAJOR(dev)];
         if (cdo == NULL || MINOR(dev) >= cdo->minors)
@@ -290,7 +290,7 @@
 int cdrom_ioctl(struct inode *ip, struct file *fp,
                 unsigned int cmd, unsigned long arg)
 {
-        dev_t dev = ip->i_rdev;
+        kdev_t dev = ip->i_rdev;
         struct cdrom_device_ops *cdo = cdromdevs[MAJOR(dev)];
 
         if (cdo == NULL || MINOR(dev) >= cdo->minors)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this