host->io_port = data->BaseAddress;
host->unique_id = data->BaseAddress;
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))
scsi_set_device(host, &PCIDEV->dev);
#else
release_region(host->io_port, host->n_io_port);
}
- if (data->MmioAddress != 0) {
- iounmap((void *)(data->MmioAddress));
+ if (data->MmioAddress) {
+ iounmap(data->MmioAddress);
}
return 0;
data->IrqNumber = pdev->irq;
data->BaseAddress = pci_resource_start(pdev, 0);
data->NumAddress = pci_resource_len (pdev, 0);
- data->MmioAddress =
- (unsigned long)ioremap_nocache(pci_resource_start(pdev, 1),
+ data->MmioAddress = ioremap_nocache(pci_resource_start(pdev, 1),
pci_resource_len (pdev, 1));
data->MmioLength = pci_resource_len (pdev, 1);
ret = scsi_register_host(&nsp32_template);
#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,
data->MmioAddress, data->MmioLength,
pci_name(pdev),