[PATCH] iomem annotations (sata_nv)
authorAl Viro <viro@ftp.linux.org.uk>
Fri, 21 Oct 2005 05:46:02 +0000 (06:46 +0100)
committerJeff Garzik <jgarzik@pobox.com>
Fri, 21 Oct 2005 06:05:31 +0000 (02:05 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/scsi/sata_nv.c

index 9fa2535dd93731e7708440bfcc2661ba9fea760d..8866530bc4915cf70c0a0b6e81d483d275a8071d 100644 (file)
@@ -331,7 +331,7 @@ static u32 nv_scr_read (struct ata_port *ap, unsigned int sc_reg)
                return 0xffffffffU;
 
        if (host->host_flags & NV_HOST_FLAGS_SCR_MMIO)
-               return readl((void*)ap->ioaddr.scr_addr + (sc_reg * 4));
+               return readl((void __iomem *)ap->ioaddr.scr_addr + (sc_reg * 4));
        else
                return inl(ap->ioaddr.scr_addr + (sc_reg * 4));
 }
@@ -345,7 +345,7 @@ static void nv_scr_write (struct ata_port *ap, unsigned int sc_reg, u32 val)
                return;
 
        if (host->host_flags & NV_HOST_FLAGS_SCR_MMIO)
-               writel(val, (void*)ap->ioaddr.scr_addr + (sc_reg * 4));
+               writel(val, (void __iomem *)ap->ioaddr.scr_addr + (sc_reg * 4));
        else
                outl(val, ap->ioaddr.scr_addr + (sc_reg * 4));
 }