aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/ata/ata_piix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c
index 671e79665009..483269db2c7d 100644
--- a/drivers/ata/ata_piix.c
+++ b/drivers/ata/ata_piix.c
@@ -1121,12 +1121,12 @@ static int piix_disable_ahci(struct pci_dev *pdev)
1121 if (!mmio) 1121 if (!mmio)
1122 return -ENOMEM; 1122 return -ENOMEM;
1123 1123
1124 tmp = readl(mmio + AHCI_GLOBAL_CTL); 1124 tmp = ioread32(mmio + AHCI_GLOBAL_CTL);
1125 if (tmp & AHCI_ENABLE) { 1125 if (tmp & AHCI_ENABLE) {
1126 tmp &= ~AHCI_ENABLE; 1126 tmp &= ~AHCI_ENABLE;
1127 writel(tmp, mmio + AHCI_GLOBAL_CTL); 1127 iowrite32(tmp, mmio + AHCI_GLOBAL_CTL);
1128 1128
1129 tmp = readl(mmio + AHCI_GLOBAL_CTL); 1129 tmp = ioread32(mmio + AHCI_GLOBAL_CTL);
1130 if (tmp & AHCI_ENABLE) 1130 if (tmp & AHCI_ENABLE)
1131 rc = -EIO; 1131 rc = -EIO;
1132 } 1132 }