patch-2.1.86 linux/drivers/cdrom/cm206.c

Next file: linux/drivers/cdrom/mcd.c
Previous file: linux/drivers/cdrom/cdu31a.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.85/linux/drivers/cdrom/cm206.c linux/drivers/cdrom/cm206.c
@@ -1248,7 +1248,7 @@
   &cm206_dops,                  /* device operations */
   NULL,				/* link */
   NULL,				/* handle (not used by cm206) */
-  MKDEV(MAJOR_NR,0),		/* dev */
+  0,				/* dev */
   0,				/* mask */
   2,				/* maximum speed */
   1,				/* number of discs */
@@ -1386,6 +1386,7 @@
     cleanup(3);
     return -EIO;
   }
+  cm206_info.dev = MKDEV(MAJOR_NR,0);
   if (register_cdrom(&cm206_info) != 0) {
     printk(KERN_INFO "Cannot register for cdrom %d!\n", MAJOR_NR);
     cleanup(3);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov