patch-2.3.40 linux/drivers/ap1000/ap.c

Next file: linux/drivers/ap1000/ddv.c
Previous file: linux/drivers/acorn/scsi/Config.in
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.39/linux/drivers/ap1000/ap.c linux/drivers/ap1000/ap.c
@@ -274,6 +274,8 @@
   blksize_size[MAJOR_NR] = ap_blocksizes;
 
   read_ahead[MAJOR_NR] = 32; /* 16k read ahead */
+  for (i=0;i<NUM_APDEVS;i++)
+	register_disk(NILL, MKDEV(MAJOR_NR,i), 1, &ap_fops, 0);
 
   return(0);
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)