|
@@ -206,22 +206,23 @@ static int __init applicom_init(void)
|
|
if (pci_enable_device(dev))
|
|
if (pci_enable_device(dev))
|
|
return -EIO;
|
|
return -EIO;
|
|
|
|
|
|
- RamIO = ioremap(dev->resource[0].start, LEN_RAM_IO);
|
|
|
|
|
|
+ RamIO = ioremap(pci_resource_start(dev, 0), LEN_RAM_IO);
|
|
|
|
|
|
if (!RamIO) {
|
|
if (!RamIO) {
|
|
printk(KERN_INFO "ac.o: Failed to ioremap PCI memory "
|
|
printk(KERN_INFO "ac.o: Failed to ioremap PCI memory "
|
|
"space at 0x%llx\n",
|
|
"space at 0x%llx\n",
|
|
- (unsigned long long)dev->resource[0].start);
|
|
|
|
|
|
+ (unsigned long long)pci_resource_start(dev, 0));
|
|
pci_disable_device(dev);
|
|
pci_disable_device(dev);
|
|
return -EIO;
|
|
return -EIO;
|
|
}
|
|
}
|
|
|
|
|
|
printk(KERN_INFO "Applicom %s found at mem 0x%llx, irq %d\n",
|
|
printk(KERN_INFO "Applicom %s found at mem 0x%llx, irq %d\n",
|
|
applicom_pci_devnames[dev->device-1],
|
|
applicom_pci_devnames[dev->device-1],
|
|
- (unsigned long long)dev->resource[0].start,
|
|
|
|
|
|
+ (unsigned long long)pci_resource_start(dev, 0),
|
|
dev->irq);
|
|
dev->irq);
|
|
|
|
|
|
- boardno = ac_register_board(dev->resource[0].start, RamIO,0);
|
|
|
|
|
|
+ boardno = ac_register_board(pci_resource_start(dev, 0),
|
|
|
|
+ RamIO, 0);
|
|
if (!boardno) {
|
|
if (!boardno) {
|
|
printk(KERN_INFO "ac.o: PCI Applicom device doesn't have correct signature.\n");
|
|
printk(KERN_INFO "ac.o: PCI Applicom device doesn't have correct signature.\n");
|
|
iounmap(RamIO);
|
|
iounmap(RamIO);
|