fix compile breakage on drivers/scsi/seagate.c

fix compile breakage on drivers/scsi/seagate.c

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



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

John Kim

--- linux-2.5.60-bk4/drivers/scsi/seagate.c     2003-02-10 13:38:29.000000000 -0500

        DANY ("seagate: que_command");
        done_fn = done;
-       current_target = SCpnt->target;
-       current_lun = SCpnt->lun;
+       current_target = SCpnt->device->id;
+       current_lun = SCpnt->device->lun;
        current_cmnd = SCpnt->cmnd;
        current_data = (unsigned char *) SCpnt->request_buffer;

 #endif                         /* LINKED */
                        reconnect = CAN_RECONNECT;

-               result = internal_command(SCint->target, SCint->lun, SCint->cmnd,
+               result = internal_command(SCint->device->id, SCint->device->lun, SCint->cmnd,
                                      SCint->request_buffer, SCint->request_bufflen, reconnect);
                if (msg_byte(result) == DISCONNECT)

 static int seagate_st0x_command(Scsi_Cmnd * SCpnt)
 {
-       return internal_command (SCpnt->target, SCpnt->lun, SCpnt->cmnd,
+       return internal_command (SCpnt->device->id, SCpnt->device->lun, SCpnt->cmnd,
                                 SCpnt->request_buffer, SCpnt->request_bufflen,
                                 (int) NO_RECONNECT);
 }
-
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/