Commit 84038b6d authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] aacraid iomem annotations

Signed-off-by: default avatarAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 9cdb23d1
......@@ -863,9 +863,9 @@ struct aac_dev
*/
union
{
struct sa_registers *sa;
struct rx_registers *rx;
struct rkt_registers *rkt;
struct sa_registers __iomem *sa;
struct rx_registers __iomem *rx;
struct rkt_registers __iomem *rkt;
} regs;
u32 OIMR; /* Mask Register Cache */
/*
......
......@@ -630,7 +630,7 @@ static int __devinit aac_probe_one(struct pci_dev *pdev,
pci_free_consistent(aac->pdev, aac->comm_size, aac->comm_addr, aac->comm_phys);
kfree(aac->queues);
free_irq(pdev->irq, aac);
iounmap((void * )aac->regs.sa);
iounmap(aac->regs.sa);
out_free_fibs:
kfree(aac->fibs);
kfree(aac->fsa_dev);
......@@ -659,7 +659,7 @@ static void __devexit aac_remove_one(struct pci_dev *pdev)
kfree(aac->queues);
free_irq(pdev->irq, aac);
iounmap((void * )aac->regs.sa);
iounmap(aac->regs.sa);
kfree(aac->fibs);
......
......@@ -405,7 +405,7 @@ int aac_rkt_init(struct aac_dev *dev)
/*
* Map in the registers from the adapter.
*/
if((dev->regs.rkt = (struct rkt_registers *)ioremap((unsigned long)dev->scsi_host_ptr->base, 8192))==NULL)
if((dev->regs.rkt = ioremap((unsigned long)dev->scsi_host_ptr->base, 8192))==NULL)
{
printk(KERN_WARNING "aacraid: unable to map i960.\n" );
goto error_iounmap;
......
......@@ -403,7 +403,7 @@ int aac_rx_init(struct aac_dev *dev)
/*
* Map in the registers from the adapter.
*/
if((dev->regs.rx = (struct rx_registers *)ioremap((unsigned long)dev->scsi_host_ptr->base, 8192))==NULL)
if((dev->regs.rx = ioremap((unsigned long)dev->scsi_host_ptr->base, 8192))==NULL)
{
printk(KERN_WARNING "aacraid: unable to map i960.\n" );
return -1;
......
......@@ -357,7 +357,7 @@ int aac_sa_init(struct aac_dev *dev)
*/
dprintk(("PREMAP\n"));
if((dev->regs.sa = (struct sa_registers *)ioremap((unsigned long)dev->scsi_host_ptr->base, 8192))==NULL)
if((dev->regs.sa = ioremap((unsigned long)dev->scsi_host_ptr->base, 8192))==NULL)
{
printk(KERN_WARNING "aacraid: unable to map ARM.\n" );
goto error_iounmap;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment