Commit 248ff3dd authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] megaraid iomem annotations

Signed-off-by: default avatarAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 56e0c3a9
...@@ -872,8 +872,7 @@ megaraid_init_mbox(adapter_t *adapter) ...@@ -872,8 +872,7 @@ megaraid_init_mbox(adapter_t *adapter)
goto out_free_raid_dev; goto out_free_raid_dev;
} }
raid_dev->baseaddr = (unsigned long) raid_dev->baseaddr = ioremap_nocache(raid_dev->baseport, 128);
ioremap_nocache(raid_dev->baseport, 128);
if (!raid_dev->baseaddr) { if (!raid_dev->baseaddr) {
...@@ -996,7 +995,7 @@ megaraid_init_mbox(adapter_t *adapter) ...@@ -996,7 +995,7 @@ megaraid_init_mbox(adapter_t *adapter)
out_free_irq: out_free_irq:
free_irq(adapter->irq, adapter); free_irq(adapter->irq, adapter);
out_iounmap: out_iounmap:
iounmap((caddr_t)raid_dev->baseaddr); iounmap(raid_dev->baseaddr);
out_release_regions: out_release_regions:
pci_release_regions(pdev); pci_release_regions(pdev);
out_free_raid_dev: out_free_raid_dev:
...@@ -1024,7 +1023,7 @@ megaraid_fini_mbox(adapter_t *adapter) ...@@ -1024,7 +1023,7 @@ megaraid_fini_mbox(adapter_t *adapter)
free_irq(adapter->irq, adapter); free_irq(adapter->irq, adapter);
iounmap((caddr_t)raid_dev->baseaddr); iounmap(raid_dev->baseaddr);
pci_release_regions(adapter->pdev); pci_release_regions(adapter->pdev);
......
...@@ -231,7 +231,7 @@ typedef struct { ...@@ -231,7 +231,7 @@ typedef struct {
dma_addr_t mbox_dma; dma_addr_t mbox_dma;
spinlock_t mailbox_lock; spinlock_t mailbox_lock;
unsigned long baseport; unsigned long baseport;
unsigned long baseaddr; void __iomem * baseaddr;
struct mraid_pci_blk mbox_pool[MBOX_MAX_SCSI_CMDS]; struct mraid_pci_blk mbox_pool[MBOX_MAX_SCSI_CMDS];
struct dma_pool *mbox_pool_handle; struct dma_pool *mbox_pool_handle;
struct mraid_pci_blk epthru_pool[MBOX_MAX_SCSI_CMDS]; struct mraid_pci_blk epthru_pool[MBOX_MAX_SCSI_CMDS];
......
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