commit | 35bb94b116e1fd4959ef0d3187458b5820eac8c4 | [log] [tgz] |
---|---|---|
author | Jeff Garzik <jeff@garzik.org> | Tue Apr 11 13:12:34 2006 -0400 |
committer | Jeff Garzik <jeff@garzik.org> | Tue Apr 11 13:12:34 2006 -0400 |
tree | 48a05166c489838d04429279a2886ac6a32b20c9 | |
parent | 381544bba3ae6f2f1004b267da34f840b469033c [diff] [blame] |
libata: Add helper ata_shost_to_port()
diff --git a/drivers/scsi/sata_svw.c b/drivers/scsi/sata_svw.c index e15c693..d5eb537 100644 --- a/drivers/scsi/sata_svw.c +++ b/drivers/scsi/sata_svw.c
@@ -257,7 +257,7 @@ int len, index; /* Find the ata_port */ - ap = (struct ata_port *) &shost->hostdata[0]; + ap = ata_shost_to_port(shost); if (ap == NULL) return 0;