diff options
Diffstat (limited to 'drivers/scsi/libata-core.c')
-rw-r--r-- | drivers/scsi/libata-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index 3387fe35c54f..6420062f2c1e 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c | |||
@@ -4659,7 +4659,7 @@ static struct ata_port * ata_host_add(const struct ata_probe_ent *ent, | |||
4659 | 4659 | ||
4660 | host->transportt = &ata_scsi_transport_template; | 4660 | host->transportt = &ata_scsi_transport_template; |
4661 | 4661 | ||
4662 | ap = (struct ata_port *) &host->hostdata[0]; | 4662 | ap = ata_shost_to_port(host); |
4663 | 4663 | ||
4664 | ata_host_init(ap, host, host_set, ent, port_no); | 4664 | ata_host_init(ap, host, host_set, ent, port_no); |
4665 | 4665 | ||
@@ -4872,7 +4872,7 @@ void ata_host_set_remove(struct ata_host_set *host_set) | |||
4872 | 4872 | ||
4873 | int ata_scsi_release(struct Scsi_Host *host) | 4873 | int ata_scsi_release(struct Scsi_Host *host) |
4874 | { | 4874 | { |
4875 | struct ata_port *ap = (struct ata_port *) &host->hostdata[0]; | 4875 | struct ata_port *ap = ata_shost_to_port(host); |
4876 | int i; | 4876 | int i; |
4877 | 4877 | ||
4878 | DPRINTK("ENTER\n"); | 4878 | DPRINTK("ENTER\n"); |