diff options
Diffstat (limited to 'drivers/scsi/libata-eh.c')
-rw-r--r-- | drivers/scsi/libata-eh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/libata-eh.c b/drivers/scsi/libata-eh.c index b518654b9d60..c31b13fd5307 100644 --- a/drivers/scsi/libata-eh.c +++ b/drivers/scsi/libata-eh.c | |||
@@ -64,7 +64,7 @@ | |||
64 | enum scsi_eh_timer_return ata_scsi_timed_out(struct scsi_cmnd *cmd) | 64 | enum 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; |
@@ -99,7 +99,7 @@ enum scsi_eh_timer_return ata_scsi_timed_out(struct scsi_cmnd *cmd) | |||
99 | */ | 99 | */ |
100 | void ata_scsi_error(struct Scsi_Host *host) | 100 | void 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 | ||