Fix an off-by-one error in the simplified SD_MAJOR macro which not only
botches up the sd majors but also steals away the major used by my
favorite slow-than-dirt SCSI RAID controller: cpqarray. Please, can I
have it back?
* Remaining dev_t-handling stuff
*/
#define SD_MAJORS 8
-#define SD_MAJOR(i) ((i) ? SCSI_DISK1_MAJOR+(i) : SCSI_DISK0_MAJOR)
+#define SD_MAJOR(i) ((i) ? SCSI_DISK1_MAJOR-1+(i) : SCSI_DISK0_MAJOR)
/*
* Time out in seconds for disks and Magneto-opticals (which are slower).