mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
Ata: pata_marvell, use ioread* for iomap-ped memory
pata_marvell, use ioread* for iomap-ped memory read* on pci_iomapped memory is incorrect, fix it Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Acked-by: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
4007b493ee
commit
90925d3050
1 changed files with 2 additions and 2 deletions
|
@ -44,10 +44,10 @@ static int marvell_pre_reset(struct ata_port *ap, unsigned long deadline)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
printk("BAR5:");
|
printk("BAR5:");
|
||||||
for(i = 0; i <= 0x0F; i++)
|
for(i = 0; i <= 0x0F; i++)
|
||||||
printk("%02X:%02X ", i, readb(barp + i));
|
printk("%02X:%02X ", i, ioread8(barp + i));
|
||||||
printk("\n");
|
printk("\n");
|
||||||
|
|
||||||
devices = readl(barp + 0x0C);
|
devices = ioread32(barp + 0x0C);
|
||||||
pci_iounmap(pdev, barp);
|
pci_iounmap(pdev, barp);
|
||||||
|
|
||||||
if ((pdev->device == 0x6145) && (ap->port_no == 0) &&
|
if ((pdev->device == 0x6145) && (ap->port_no == 0) &&
|
||||||
|
|
Loading…
Add table
Reference in a new issue