Commit c8d53504 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] nsp32 iomem annotations

Signed-off-by: default avatarAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 248ff3dd
...@@ -2721,7 +2721,7 @@ static int nsp32_detect(Scsi_Host_Template *sht) ...@@ -2721,7 +2721,7 @@ static int nsp32_detect(Scsi_Host_Template *sht)
host->io_port = data->BaseAddress; host->io_port = data->BaseAddress;
host->unique_id = data->BaseAddress; host->unique_id = data->BaseAddress;
host->n_io_port = data->NumAddress; host->n_io_port = data->NumAddress;
host->base = data->MmioAddress; host->base = (unsigned long)data->MmioAddress;
#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,63)) #if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,63))
scsi_set_device(host, &PCIDEV->dev); scsi_set_device(host, &PCIDEV->dev);
#else #else
...@@ -2939,8 +2939,8 @@ static int nsp32_release(struct Scsi_Host *host) ...@@ -2939,8 +2939,8 @@ static int nsp32_release(struct Scsi_Host *host)
release_region(host->io_port, host->n_io_port); release_region(host->io_port, host->n_io_port);
} }
if (data->MmioAddress != 0) { if (data->MmioAddress) {
iounmap((void *)(data->MmioAddress)); iounmap(data->MmioAddress);
} }
return 0; return 0;
...@@ -3512,8 +3512,7 @@ static int __devinit nsp32_probe(struct pci_dev *pdev, const struct pci_device_i ...@@ -3512,8 +3512,7 @@ static int __devinit nsp32_probe(struct pci_dev *pdev, const struct pci_device_i
data->IrqNumber = pdev->irq; data->IrqNumber = pdev->irq;
data->BaseAddress = pci_resource_start(pdev, 0); data->BaseAddress = pci_resource_start(pdev, 0);
data->NumAddress = pci_resource_len (pdev, 0); data->NumAddress = pci_resource_len (pdev, 0);
data->MmioAddress = data->MmioAddress = ioremap_nocache(pci_resource_start(pdev, 1),
(unsigned long)ioremap_nocache(pci_resource_start(pdev, 1),
pci_resource_len (pdev, 1)); pci_resource_len (pdev, 1));
data->MmioLength = pci_resource_len (pdev, 1); data->MmioLength = pci_resource_len (pdev, 1);
...@@ -3525,7 +3524,7 @@ static int __devinit nsp32_probe(struct pci_dev *pdev, const struct pci_device_i ...@@ -3525,7 +3524,7 @@ static int __devinit nsp32_probe(struct pci_dev *pdev, const struct pci_device_i
ret = scsi_register_host(&nsp32_template); ret = scsi_register_host(&nsp32_template);
#endif #endif
nsp32_msg(KERN_INFO, "irq: %i mmio: 0x%lx+0x%lx slot: %s model: %s", nsp32_msg(KERN_INFO, "irq: %i mmio: %p+0x%lx slot: %s model: %s",
pdev->irq, pdev->irq,
data->MmioAddress, data->MmioLength, data->MmioAddress, data->MmioLength,
pci_name(pdev), pci_name(pdev),
......
...@@ -563,7 +563,7 @@ typedef struct _nsp32_hw_data { ...@@ -563,7 +563,7 @@ typedef struct _nsp32_hw_data {
int IrqNumber; int IrqNumber;
int BaseAddress; int BaseAddress;
int NumAddress; int NumAddress;
unsigned long MmioAddress; void __iomem *MmioAddress;
#define NSP32_MMIO_OFFSET 0x0800 #define NSP32_MMIO_OFFSET 0x0800
unsigned long MmioLength; unsigned long MmioLength;
......
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