patch-2.3.99-pre7 linux/drivers/atm/nicstar.c
Next file: linux/drivers/atm/suni.c
Previous file: linux/drivers/atm/iphase.c
Back to the patch index
Back to the overall index
-  Lines: 15
-  Date:
Fri Apr 28 23:00:04 2000
-  Orig file: 
v2.3.99-pre6/linux/drivers/atm/nicstar.c
-  Orig date: 
Mon Mar 27 08:08:23 2000
diff -u --recursive --new-file v2.3.99-pre6/linux/drivers/atm/nicstar.c linux/drivers/atm/nicstar.c
@@ -452,6 +452,14 @@
 
    error = 0;
 
+   if (pci_enable_device(pcidev))
+   {
+      printk("nicstar%d: can't enable PCI device\n", i);
+      error = 2;
+      ns_init_card_error(card, error);
+      return error;
+   }
+
    if ((card = kmalloc(sizeof(ns_dev), GFP_KERNEL)) == NULL)
    {
       printk("nicstar%d: can't allocate memory for device structure.\n", i);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)