aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/char/applicom.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/char/applicom.c b/drivers/char/applicom.c
index 1f0b752e5de1..b0bb71b1fcf4 100644
--- a/drivers/char/applicom.c
+++ b/drivers/char/applicom.c
@@ -206,22 +206,23 @@ static int __init applicom_init(void)
206 if (pci_enable_device(dev)) 206 if (pci_enable_device(dev))
207 return -EIO; 207 return -EIO;
208 208
209 RamIO = ioremap(dev->resource[0].start, LEN_RAM_IO); 209 RamIO = ioremap(pci_resource_start(dev, 0), LEN_RAM_IO);
210 210
211 if (!RamIO) { 211 if (!RamIO) {
212 printk(KERN_INFO "ac.o: Failed to ioremap PCI memory " 212 printk(KERN_INFO "ac.o: Failed to ioremap PCI memory "
213 "space at 0x%llx\n", 213 "space at 0x%llx\n",
214 (unsigned long long)dev->resource[0].start); 214 (unsigned long long)pci_resource_start(dev, 0));
215 pci_disable_device(dev); 215 pci_disable_device(dev);
216 return -EIO; 216 return -EIO;
217 } 217 }
218 218
219 printk(KERN_INFO "Applicom %s found at mem 0x%llx, irq %d\n", 219 printk(KERN_INFO "Applicom %s found at mem 0x%llx, irq %d\n",
220 applicom_pci_devnames[dev->device-1], 220 applicom_pci_devnames[dev->device-1],
221 (unsigned long long)dev->resource[0].start, 221 (unsigned long long)pci_resource_start(dev, 0),
222 dev->irq); 222 dev->irq);
223 223
224 boardno = ac_register_board(dev->resource[0].start, RamIO,0); 224 boardno = ac_register_board(pci_resource_start(dev, 0),
225 RamIO, 0);
225 if (!boardno) { 226 if (!boardno) {
226 printk(KERN_INFO "ac.o: PCI Applicom device doesn't have correct signature.\n"); 227 printk(KERN_INFO "ac.o: PCI Applicom device doesn't have correct signature.\n");
227 iounmap(RamIO); 228 iounmap(RamIO);