]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/scsi/sata_svw.c
[PATCH] libata-ncq: implement NCQ device configuration
[linux-2.6-omap-h63xx.git] / drivers / scsi / sata_svw.c
index e15c693e05390eb1a7d6601e50d3e3f6193285bb..d5eb5375e265562fc716e3ba1fb4b199005d60a8 100644 (file)
@@ -257,7 +257,7 @@ static int k2_sata_proc_info(struct Scsi_Host *shost, char *page, char **start,
        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;