Commit 8f226551 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Linus Torvalds

[PATCH] Sun-3 and Atari NCR5380 scsi_host_hn_get()

Scsi_Host.next was removed in 2.5.44, convert to use scsi_host_hn_get()
parent dce2551e
......@@ -769,9 +769,7 @@ int NCR5380_proc_info (char *buffer, char **start, off_t offset,
} \
} while (0)
for (instance = first_instance; instance && HOSTNO != hostno;
instance = instance->next)
;
instance = scsi_host_hn_get(hostno);
if (!instance)
return(-ESRCH);
hostdata = (struct NCR5380_hostdata *)instance->hostdata;
......
......@@ -772,9 +772,7 @@ static int NCR5380_proc_info (char *buffer, char **start, off_t offset,
} \
} while (0)
for (instance = first_instance; instance && HOSTNO != hostno;
instance = instance->next)
;
instance = scsi_host_hn_get(hostno);
if (!instance)
return(-ESRCH);
hostdata = (struct NCR5380_hostdata *)instance->hostdata;
......
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