Ata: pata_marvell, use ioread* for iomap-ped memory
PATCH 4/10 Ata: pata_marvell, use ioread* for iomap-ped memory
From: Jiri Slaby <[email protected]>
pata_marvell, use ioread* for iomap-ped memory
read* on pci_iomapped memory is incorrect, fix it
Signed-off-by Jiri Slaby <[email protected]>
Acked-by Alan Cox <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/ata/pata_marvell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/ata/pata_marvell.c renamed from drivers/ata/pata_marvell.c~ata-pata_marvell-use-ioread-for-iomap-ped-memory +2 -2
@@ -45,10 +45,10 @@ static int marvell_pre_reset(struct ata_return -ENOMEM ;printk ("BAR5:" );for (i =0 ; i <=0x0F ; i++) -printk ("%02X:%02X " , i,readb (barp + i)); +printk ("%02X:%02X " , i,ioread8 (barp + i));printk ("\n" ); - devices =readl (barp +0x0C ); + devices =ioread32 (barp +0x0C );pci_iounmap (pdev, barp); if ((pdev->device == 0x6145) && (ap->port_no == 0) &&
_
Jeff Garzik
AppliedQuoted 9 lines · [email protected] wrote:
From: Jiri Slaby <[email protected]>
pata_marvell, use ioread* for iomap-ped memoryread* on
pci_iomappedmemory is incorrect, fix itSigned-off-by Jiri Slaby <[email protected]>Acked-by Alan Cox <[email protected]>Signed-off-by Andrew Morton <[email protected]>
applied