aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/sata_promise.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/sata_promise.c')
-rw-r--r--drivers/ata/sata_promise.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/sata_promise.c b/drivers/ata/sata_promise.c
index 620d0675d18a..c7238ce83541 100644
--- a/drivers/ata/sata_promise.c
+++ b/drivers/ata/sata_promise.c
@@ -475,7 +475,7 @@ static void pdc_atapi_pkt(struct ata_queued_cmd *qc)
475 buf32[2] = 0; /* no next-packet */ 475 buf32[2] = 0; /* no next-packet */
476 476
477 /* select drive */ 477 /* select drive */
478 if (sata_scr_valid(ap)) { 478 if (sata_scr_valid(&ap->link)) {
479 dev_sel = PDC_DEVICE_SATA; 479 dev_sel = PDC_DEVICE_SATA;
480 } else { 480 } else {
481 dev_sel = ATA_DEVICE_OBS; 481 dev_sel = ATA_DEVICE_OBS;
@@ -643,7 +643,7 @@ static void pdc_error_intr(struct ata_port *ap, struct ata_queued_cmd *qc,
643 | PDC_PCI_SYS_ERR | PDC1_PCI_PARITY_ERR)) 643 | PDC_PCI_SYS_ERR | PDC1_PCI_PARITY_ERR))
644 ac_err_mask |= AC_ERR_HOST_BUS; 644 ac_err_mask |= AC_ERR_HOST_BUS;
645 645
646 if (sata_scr_valid(ap)) { 646 if (sata_scr_valid(&ap->link)) {
647 u32 serror; 647 u32 serror;
648 648
649 pdc_sata_scr_read(ap, SCR_ERROR, &serror); 649 pdc_sata_scr_read(ap, SCR_ERROR, &serror);