From ec765df5ef5ae6e334e78bae830cd31e0bb03578 Mon Sep 17 00:00:00 2001
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
Date: Sun, 27 Oct 2002 22:38:55 -0800
Subject: [PATCH] [PATCH] ncr53c8xxx needs updating for scsi_hn_get

---
 drivers/scsi/ncr53c8xx.c | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/drivers/scsi/ncr53c8xx.c b/drivers/scsi/ncr53c8xx.c
index 26ce03f229c2..93f0b241787a 100644
--- a/drivers/scsi/ncr53c8xx.c
+++ b/drivers/scsi/ncr53c8xx.c
@@ -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
-- 
2.30.9