]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[libata scsi] build fix for ATA_FLAG_IN_EH change
authorJeff Garzik <jgarzik@pobox.com>
Thu, 9 Feb 2006 06:56:05 +0000 (01:56 -0500)
committerJeff Garzik <jgarzik@pobox.com>
Thu, 9 Feb 2006 06:56:05 +0000 (01:56 -0500)
drivers/scsi/libata-scsi.c

index 3a4f40b251fb20575d05a97aa88e750a4866d855..b007bb4093820e63475fbde0eb88c342c199423f 100644 (file)
@@ -732,15 +732,17 @@ int ata_scsi_slave_config(struct scsi_device *sdev)
 int ata_scsi_error(struct Scsi_Host *host)
 {
        struct ata_port *ap;
+       unsigned long flags;
 
        DPRINTK("ENTER\n");
 
+       ap = (struct ata_port *) &host->hostdata[0];
+
        spin_lock_irqsave(&ap->host_set->lock, flags);
        assert(!(ap->flags & ATA_FLAG_IN_EH));
        ap->flags |= ATA_FLAG_IN_EH;
        spin_unlock_irqrestore(&ap->host_set->lock, flags);
 
-       ap = (struct ata_port *) &host->hostdata[0];
        ap->ops->eng_timeout(ap);
 
        assert(host->host_failed == 0 && list_empty(&host->eh_cmd_q));