aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libata-eh.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-04-12 16:54:43 -0400
committerJeff Garzik <jeff@garzik.org>2006-04-12 16:54:43 -0400
commita890b15c0990cc8d686edcc85f5fccde71ad5ce9 (patch)
tree73162355b58283a2531f13fbbf663809f95c1483 /drivers/scsi/libata-eh.c
parent79fa1b677be3a985cc66b9218a4dd09818f1051b (diff)
parent26ec634c31a11a003040e10b4d650495158632fd (diff)
Merge branch 'upstream'
Diffstat (limited to 'drivers/scsi/libata-eh.c')
-rw-r--r--drivers/scsi/libata-eh.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/scsi/libata-eh.c b/drivers/scsi/libata-eh.c
index 9a8eea11b0be..16db62211716 100644
--- a/drivers/scsi/libata-eh.c
+++ b/drivers/scsi/libata-eh.c
@@ -64,7 +64,7 @@
64enum scsi_eh_timer_return ata_scsi_timed_out(struct scsi_cmnd *cmd) 64enum scsi_eh_timer_return ata_scsi_timed_out(struct scsi_cmnd *cmd)
65{ 65{
66 struct Scsi_Host *host = cmd->device->host; 66 struct Scsi_Host *host = cmd->device->host;
67 struct ata_port *ap = (struct ata_port *) &host->hostdata[0]; 67 struct ata_port *ap = ata_shost_to_port(host);
68 unsigned long flags; 68 unsigned long flags;
69 struct ata_queued_cmd *qc; 69 struct ata_queued_cmd *qc;
70 enum scsi_eh_timer_return ret = EH_HANDLED; 70 enum scsi_eh_timer_return ret = EH_HANDLED;
@@ -97,9 +97,9 @@ enum scsi_eh_timer_return ata_scsi_timed_out(struct scsi_cmnd *cmd)
97 * RETURNS: 97 * RETURNS:
98 * Zero. 98 * Zero.
99 */ 99 */
100int ata_scsi_error(struct Scsi_Host *host) 100void ata_scsi_error(struct Scsi_Host *host)
101{ 101{
102 struct ata_port *ap = (struct ata_port *)&host->hostdata[0]; 102 struct ata_port *ap = ata_shost_to_port(host);
103 103
104 DPRINTK("ENTER\n"); 104 DPRINTK("ENTER\n");
105 105
@@ -116,7 +116,6 @@ int ata_scsi_error(struct Scsi_Host *host)
116 scsi_eh_flush_done_q(&ap->eh_done_q); 116 scsi_eh_flush_done_q(&ap->eh_done_q);
117 117
118 DPRINTK("EXIT\n"); 118 DPRINTK("EXIT\n");
119 return 0;
120} 119}
121 120
122/** 121/**