Ata: pata_marvell, use ioread* for iomap-ped memory
PATCH 1/1 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 <[email protected]>
Cc Alan Cox <[email protected]>
---
commit 5a28a23f3c53993aaf6e7ef6c392e5f4c20d4a3b
tree 4b3387d330556da54d61d989f2dc75d5258af4ea
parent f5f10b061961546a77300f3ebe92abd9cb5b9b48
author Jiri Slaby <[email protected]> Sat, 25 Aug 2007 09:41:44 +0200 committer Jiri Slaby <[email protected]> Sat, 25 Aug 2007 09:41:44 +0200
drivers/ata/pata_marvell.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/ata/pata_marvell.c +2 -2
@@ -45,10 +45,10 @@ static int marvell_pre_reset(struct ata_link *link, unsigned long deadline)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) &&
Quoted 6 lines · On Sat, 25 Aug 2007 08:54:27 +0100 Jiri Slaby <[email protected]> wrote:
pata_marvell, use ioread* for iomap-ped memoryread* on
pci_iomappedmemory is incorrect, fix itSigned-off-by Jiri Slaby <[email protected]>Cc Alan Cox <[email protected]>
Acked-by Alan Cox <[email protected]>