[PATCH 2.5.60-bk4] fix compile breakage on drivers/scsi/fd_mcs.c

From: John Kim (john@larvalstage.com)
Date: Fri Feb 14 2003 - 16:24:06 EST


This fixes compile breakage due to recent changes to scsi.h

John Kim

--- linux-2.5.60-bk4/drivers/scsi/fd_mcs.c 2003-02-10 13:38:20.000000000 -0500
+++ linux-2.5.60-bk4-new/drivers/scsi/fd_mcs.c 2003-02-14 15:32:46.000000000 -0500
@@ -732,7 +732,7 @@
                 outb(0x40 | FIFO_COUNT, Interrupt_Cntl_port);
 
                 outb(0x82, SCSI_Cntl_port); /* Bus Enable + Select */
- outb(adapter_mask | (1 << current_SC->target), SCSI_Data_NoACK_port);
+ outb(adapter_mask | (1 << current_SC->device->id), SCSI_Data_NoACK_port);
 
                 /* Stop arbitration and enable parity */
                 outb(0x10 | PARITY_MASK, TMC_Cntl_port);
@@ -744,7 +744,7 @@
                 status = inb(SCSI_Status_port);
                 if (!(status & 0x01)) {
                         /* Try again, for slow devices */
- if (fd_mcs_select(shpnt, current_SC->target)) {
+ if (fd_mcs_select(shpnt, current_SC->device->id)) {
 #if EVERY_ACCESS
                                 printk(" SFAIL ");
 #endif
@@ -1150,7 +1150,7 @@
 
 static int fd_mcs_queue(Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *))
 {
- struct Scsi_Host *shpnt = SCpnt->host;
+ struct Scsi_Host *shpnt = SCpnt->device->host;
 
         if (in_command) {
                 panic("fd_mcs: fd_mcs_queue() NOT REENTRANT!\n");
@@ -1286,7 +1286,7 @@
 
 static int fd_mcs_abort(Scsi_Cmnd * SCpnt)
 {
- struct Scsi_Host *shpnt = SCpnt->host;
+ struct Scsi_Host *shpnt = SCpnt->device->host;
 
         unsigned long flags;
 #if EVERY_ACCESS || ERRORS_ONLY || DEBUG_ABORT
@@ -1331,7 +1331,7 @@
 }
 
 static int fd_mcs_bus_reset(Scsi_Cmnd * SCpnt) {
- struct Scsi_Host *shpnt = SCpnt->host;
+ struct Scsi_Host *shpnt = SCpnt->device->host;
 
 #if DEBUG_RESET
         static int called_once = 0;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Feb 15 2003 - 22:00:58 EST