2.5.44 - ncr didn't compile
This makes ncr53c8xx.c compile. I accidentally "fixed" the wrong driver, so I'm not bothered whether it's right or not :)
regards
john
drivers/scsi/ncr53c8xx.c +10 -28
@@ -362,17 +362,6 @@#define NCR_SNOOP_TIMEOUT (1000000)/* -** Head of list of NCR boards -** -** For kernel version < 1.3.70, host is retrieved by its irq level. -** For later kernels, the internal host control block address -** (struct ncb) is used as device id parameter of the irq stuff. -*/ - -static struct Scsi_Host *first_host =NULL ; -static Scsi_Host_Template *the_template =NULL ; - -/* ** Other definitions */
@@ -3854,14 +3843,6 @@ np->order =M_SIMPLE_TAG ;#endif -/* -** Done. -*/ -if (!the_template) { - the_template = instance->hostt; - first_host = instance; - } -NCR_UNLOCK_NCB (np, flags);return 0 ;
@@ -9125,16 +9106,15 @@printk ("ncr53c8xx_proc_info: hostno=%d, func=%d\n" , hostno, func);#endif -for (host = first_host; host; host = host->next) { -if (host->hostt == the_template && host->host_no == hostno) { - host_data = (struct host_data *) host->hostdata; - ncb = host_data->ncb; -break ; - } - } - -if (!ncb) + host =scsi_host_hn_get (hostno); +if (!host)return -EINVAL ; + + host_data = (struct host_data *)host->hostdata; + ncb = host_data->ncb; + retv = -EINVAL ; +if (!ncb) + goto out;if (func) {#ifdef SCSI_NCR_USER_COMMAND_SUPPORT
@@ -9153,6 +9133,8 @@#endif } +out: +scsi_host_put (host);return retv; }