fix compile breakage on drivers/scsi/fd_mcs.c

fix compile breakage on drivers/scsi/fd_mcs.c

Post by John Ki » Sat, 15 Feb 2003 23:40:19



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

                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 */

                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 ");

 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) {

 static int fd_mcs_abort(Scsi_Cmnd * SCpnt)
 {
-       struct Scsi_Host *shpnt = SCpnt->host;
+       struct Scsi_Host *shpnt = SCpnt->device->host;

        unsigned long flags;

 }

 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

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/