patch-1.3.28 linux/drivers/scsi/ultrastor.c

Next file: linux/drivers/scsi/ultrastor.h
Previous file: linux/drivers/scsi/u14-34f.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.27/linux/drivers/scsi/ultrastor.c linux/drivers/scsi/ultrastor.c
@@ -145,6 +145,12 @@
 #include "hosts.h"
 #include "ultrastor.h"
 #include "sd.h"
+#include<linux/stat.h>
+
+struct proc_dir_entry proc_scsi_ultrastor = {
+    PROC_SCSI_ULTRASTOR, 9, "ultrastor",
+    S_IFDIR | S_IRUGO | S_IXUGO, 2
+};
 
 #define FALSE 0
 #define TRUE 1
@@ -625,6 +631,7 @@
 
 int ultrastor_detect(Scsi_Host_Template * tpnt)
 {
+    tpnt->proc_dir = &proc_scsi_ultrastor;
   return ultrastor_14f_detect(tpnt) || ultrastor_24f_detect(tpnt);
 }
 
@@ -1003,7 +1010,7 @@
 
 }
 
-int ultrastor_biosparam(Disk * disk, int dev, int * dkinfo)
+int ultrastor_biosparam(Disk * disk, kdev_t dev, int * dkinfo)
 {
     int size = disk->capacity;
     unsigned int s = config.heads * config.sectors;

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