Commit ec765df5 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] ncr53c8xxx needs updating for scsi_hn_get

parent 2b3f31b2
......@@ -9125,16 +9125,11 @@ static int ncr53c8xx_proc_info(char *buffer, char **start, off_t offset,
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)
if((host = scsi_host_hn_get(hostno))==NULL)
return -EINVAL;
host_data = (struct host_data *) host->hostdata;
ncb = host_data->ncb;
if (func) {
#ifdef SCSI_NCR_USER_COMMAND_SUPPORT
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment