diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-02-04 07:40:19 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-02-04 07:40:19 +0000 |
commit | 33263fc5f9ac8e8cb2b22d06af3ce5ac1dd815e4 (patch) | |
tree | 2d1b86a40bef0958a68cf1a2eafbeb0667a70543 /drivers/scsi/gdth_proc.c | |
parent | 216f5f51aa02f8b113aa620ebc14a9631a217a00 (diff) |
Merge with Linux 2.3.32.
Diffstat (limited to 'drivers/scsi/gdth_proc.c')
-rw-r--r-- | drivers/scsi/gdth_proc.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/scsi/gdth_proc.c b/drivers/scsi/gdth_proc.c index 137eb4c4c..6d0112aba 100644 --- a/drivers/scsi/gdth_proc.c +++ b/drivers/scsi/gdth_proc.c @@ -463,11 +463,7 @@ static int gdth_get_info(char *buffer,char **start,off_t offset, /* controller information */ size = sprintf(buffer+len,"\nDisk Array Controller Information:\n"); len += size; pos = begin + len; -#if LINUX_VERSION_CODE >= 0x020000 strcpy(hrec, ha->binfo.type_string); -#else - sprintf(hrec, "%s (Bus %d)", ha->binfo.type_string, busnum); -#endif size = sprintf(buffer+len, " Number: \t%d \tName: \t%s\n", hanum, hrec); @@ -938,10 +934,8 @@ static void gdth_do_cmd(Scsi_Cmnd *scp,gdth_cmd_str *gdtcmd,int timeout) scp->request.rq_status = RQ_SCSI_BUSY; scp->request.sem = &sem; scp->SCp.this_residual = IOCTL_PRI; - GDTH_LOCK_SCSI_DOCMD(); scsi_do_cmd(scp, cmnd, gdtcmd, sizeof(gdth_cmd_str), gdth_scsi_done, timeout*HZ, 1); - GDTH_UNLOCK_SCSI_DOCMD(); down(&sem); } @@ -1002,13 +996,8 @@ static void gdth_wait_completion(int hanum, int busnum, int id) for (i = 0; i < GDTH_MAXCMDS; ++i) { scp = ha->cmd_tab[i].cmnd; -#if LINUX_VERSION_CODE >= 0x020000 if (!SPECIAL_SCP(scp) && scp->target == (unchar)id && scp->channel == (unchar)busnum) -#else - if (!SPECIAL_SCP(scp) && scp->target == (unchar)id && - NUMDATA(scp->host)->busnum == (unchar)busnum) -#endif { scp->SCp.have_data_in = 0; GDTH_UNLOCK_HA(ha, flags); @@ -1033,13 +1022,8 @@ static void gdth_stop_timeout(int hanum, int busnum, int id) GDTH_LOCK_HA(ha, flags); for (scp = ha->req_first; scp; scp = (Scsi_Cmnd *)scp->SCp.ptr) { -#if LINUX_VERSION_CODE >= 0x020000 if (scp->target == (unchar)id && scp->channel == (unchar)busnum) -#else - if (scp->target == (unchar)id && - NUMDATA(scp->host)->busnum == (unchar)busnum) -#endif { TRACE2(("gdth_stop_timeout(): update_timeout()\n")); scp->SCp.buffers_residual = gdth_update_timeout(hanum, scp, 0); @@ -1058,13 +1042,8 @@ static void gdth_start_timeout(int hanum, int busnum, int id) GDTH_LOCK_HA(ha, flags); for (scp = ha->req_first; scp; scp = (Scsi_Cmnd *)scp->SCp.ptr) { -#if LINUX_VERSION_CODE >= 0x020000 if (scp->target == (unchar)id && scp->channel == (unchar)busnum) -#else - if (scp->target == (unchar)id && - NUMDATA(scp->host)->busnum == (unchar)busnum) -#endif { TRACE2(("gdth_start_timeout(): update_timeout()\n")); gdth_update_timeout(hanum, scp, scp->SCp.buffers_residual); |