patch-2.3.99-pre7 linux/drivers/char/isicom.c
Next file: linux/drivers/char/istallion.c
Previous file: linux/drivers/char/dtlk.c
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Wed May 10 16:56:41 2000
- Orig file:
v2.3.99-pre6/linux/drivers/char/isicom.c
- Orig date:
Wed Feb 16 17:03:51 2000
diff -u --recursive --new-file v2.3.99-pre6/linux/drivers/char/isicom.c linux/drivers/char/isicom.c
@@ -98,7 +98,7 @@
/* baud index mappings from linux defns to isi */
-static char linuxb_to_isib[] = {
+static signed char linuxb_to_isib[] = {
-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 13, 15, 16, 17,
18, 19
};
@@ -1995,12 +1995,14 @@
if (card >= BOARD_COUNT)
break;
+ if (pci_enable_device(dev))
+ break;
+
/* found a PCI ISI card! */
- ioaddr = dev->resource[3].start; /* i.e at offset 0x1c in the
- * PCI configuration register
- * space.
- */
- ioaddr &= PCI_BASE_ADDRESS_IO_MASK;
+ ioaddr = pci_resource_start (dev, 3); /* i.e at offset 0x1c in the
+ * PCI configuration register
+ * space.
+ */
pciirq = dev->irq;
printk(KERN_INFO "ISI PCI Card(Device ID 0x%x)\n", device_id[idx]);
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)