diff options
Diffstat (limited to 'drivers/ata/sata_sil24.c')
-rw-r--r-- | drivers/ata/sata_sil24.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/ata/sata_sil24.c b/drivers/ata/sata_sil24.c index 233e88693395..2d8334e7921d 100644 --- a/drivers/ata/sata_sil24.c +++ b/drivers/ata/sata_sil24.c | |||
@@ -456,7 +456,7 @@ static int sil24_tag(int tag) | |||
456 | 456 | ||
457 | static void sil24_dev_config(struct ata_device *dev) | 457 | static void sil24_dev_config(struct ata_device *dev) |
458 | { | 458 | { |
459 | void __iomem *port = dev->ap->ioaddr.cmd_addr; | 459 | void __iomem *port = dev->link->ap->ioaddr.cmd_addr; |
460 | 460 | ||
461 | if (dev->cdb_len == 16) | 461 | if (dev->cdb_len == 16) |
462 | writel(PORT_CS_CDB16, port + PORT_CTRL_STAT); | 462 | writel(PORT_CS_CDB16, port + PORT_CTRL_STAT); |
@@ -609,7 +609,7 @@ static int sil24_do_softreset(struct ata_port *ap, unsigned int *class, | |||
609 | if (time_after(deadline, jiffies)) | 609 | if (time_after(deadline, jiffies)) |
610 | timeout_msec = jiffies_to_msecs(deadline - jiffies); | 610 | timeout_msec = jiffies_to_msecs(deadline - jiffies); |
611 | 611 | ||
612 | ata_tf_init(ap->device, &tf); /* doesn't really matter */ | 612 | ata_tf_init(ap->link.device, &tf); /* doesn't really matter */ |
613 | rc = sil24_exec_polled_cmd(ap, pmp, &tf, 0, PRB_CTRL_SRST, | 613 | rc = sil24_exec_polled_cmd(ap, pmp, &tf, 0, PRB_CTRL_SRST, |
614 | timeout_msec); | 614 | timeout_msec); |
615 | if (rc == -EBUSY) { | 615 | if (rc == -EBUSY) { |
@@ -804,7 +804,7 @@ static void sil24_error_intr(struct ata_port *ap) | |||
804 | { | 804 | { |
805 | void __iomem *port = ap->ioaddr.cmd_addr; | 805 | void __iomem *port = ap->ioaddr.cmd_addr; |
806 | struct sil24_port_priv *pp = ap->private_data; | 806 | struct sil24_port_priv *pp = ap->private_data; |
807 | struct ata_eh_info *ehi = &ap->eh_info; | 807 | struct ata_eh_info *ehi = &ap->link.eh_info; |
808 | int freeze = 0; | 808 | int freeze = 0; |
809 | u32 irq_stat; | 809 | u32 irq_stat; |
810 | 810 | ||
@@ -856,7 +856,7 @@ static void sil24_error_intr(struct ata_port *ap) | |||
856 | } | 856 | } |
857 | 857 | ||
858 | /* record error info */ | 858 | /* record error info */ |
859 | qc = ata_qc_from_tag(ap, ap->active_tag); | 859 | qc = ata_qc_from_tag(ap, ap->link.active_tag); |
860 | if (qc) { | 860 | if (qc) { |
861 | sil24_read_tf(ap, qc->tag, &pp->tf); | 861 | sil24_read_tf(ap, qc->tag, &pp->tf); |
862 | qc->err_mask |= err_mask; | 862 | qc->err_mask |= err_mask; |
@@ -910,7 +910,7 @@ static inline void sil24_host_intr(struct ata_port *ap) | |||
910 | if (rc > 0) | 910 | if (rc > 0) |
911 | return; | 911 | return; |
912 | if (rc < 0) { | 912 | if (rc < 0) { |
913 | struct ata_eh_info *ehi = &ap->eh_info; | 913 | struct ata_eh_info *ehi = &ap->link.eh_info; |
914 | ehi->err_mask |= AC_ERR_HSM; | 914 | ehi->err_mask |= AC_ERR_HSM; |
915 | ehi->action |= ATA_EH_SOFTRESET; | 915 | ehi->action |= ATA_EH_SOFTRESET; |
916 | ata_port_freeze(ap); | 916 | ata_port_freeze(ap); |
@@ -921,7 +921,7 @@ static inline void sil24_host_intr(struct ata_port *ap) | |||
921 | if (!(ap->flags & SIL24_FLAG_PCIX_IRQ_WOC) && ata_ratelimit()) | 921 | if (!(ap->flags & SIL24_FLAG_PCIX_IRQ_WOC) && ata_ratelimit()) |
922 | ata_port_printk(ap, KERN_INFO, "spurious interrupt " | 922 | ata_port_printk(ap, KERN_INFO, "spurious interrupt " |
923 | "(slot_stat 0x%x active_tag %d sactive 0x%x)\n", | 923 | "(slot_stat 0x%x active_tag %d sactive 0x%x)\n", |
924 | slot_stat, ap->active_tag, ap->sactive); | 924 | slot_stat, ap->link.active_tag, ap->link.sactive); |
925 | } | 925 | } |
926 | 926 | ||
927 | static irqreturn_t sil24_interrupt(int irq, void *dev_instance) | 927 | static irqreturn_t sil24_interrupt(int irq, void *dev_instance) |
@@ -963,7 +963,7 @@ static irqreturn_t sil24_interrupt(int irq, void *dev_instance) | |||
963 | 963 | ||
964 | static void sil24_error_handler(struct ata_port *ap) | 964 | static void sil24_error_handler(struct ata_port *ap) |
965 | { | 965 | { |
966 | struct ata_eh_context *ehc = &ap->eh_context; | 966 | struct ata_eh_context *ehc = &ap->link.eh_context; |
967 | 967 | ||
968 | if (sil24_init_port(ap)) { | 968 | if (sil24_init_port(ap)) { |
969 | ata_eh_freeze_port(ap); | 969 | ata_eh_freeze_port(ap); |