ata_piix: Invalid use of writel/readl with iomap
Should use ioread* as discussed previously Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
93e2618e0c
commit
c47a631f8b
1 changed files with 3 additions and 3 deletions
|
@ -1121,12 +1121,12 @@ static int piix_disable_ahci(struct pci_dev *pdev)
|
|||
if (!mmio)
|
||||
return -ENOMEM;
|
||||
|
||||
tmp = readl(mmio + AHCI_GLOBAL_CTL);
|
||||
tmp = ioread32(mmio + AHCI_GLOBAL_CTL);
|
||||
if (tmp & AHCI_ENABLE) {
|
||||
tmp &= ~AHCI_ENABLE;
|
||||
writel(tmp, mmio + AHCI_GLOBAL_CTL);
|
||||
iowrite32(tmp, mmio + AHCI_GLOBAL_CTL);
|
||||
|
||||
tmp = readl(mmio + AHCI_GLOBAL_CTL);
|
||||
tmp = ioread32(mmio + AHCI_GLOBAL_CTL);
|
||||
if (tmp & AHCI_ENABLE)
|
||||
rc = -EIO;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue