patch-2.3.10 linux/drivers/i2o/i2o_pci.c
Next file: linux/drivers/i2o/i2o_proc.c
Previous file: linux/drivers/i2o/i2o_lan.h
Back to the patch index
Back to the overall index
- Lines: 43
- Date:
Mon Jul 5 20:09:40 1999
- Orig file:
v2.3.9/linux/drivers/i2o/i2o_pci.c
- Orig date:
Wed Jun 30 13:38:19 1999
diff -u --recursive --new-file v2.3.9/linux/drivers/i2o/i2o_pci.c linux/drivers/i2o/i2o_pci.c
@@ -10,6 +10,9 @@
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
+ *
+ * TODO:
+ * Support polled I2O PCI controllers.
*/
#include <linux/module.h>
@@ -187,9 +190,9 @@
c=i2o_find_controller(i);
if(c==NULL)
continue;
+ i2o_unlock_controller(c);
if(c->type == I2O_TYPE_PCI)
i2o_delete_controller(c);
- i2o_unlock_controller(c);
}
}
@@ -209,7 +212,6 @@
{
printk("I2O: Failed to initialize iop%d\n", c->unit);
i2o_unlock_controller(c);
- free_irq(c->bus.pci.irq, c);
i2o_delete_controller(c);
continue;
}
@@ -239,4 +241,13 @@
i2o_pci_unload();
}
+#else
+__init void i2o_pci_init(void)
+{
+ if(i2o_pci_scan()>=0)
+ {
+ printk(KERN_INFO "Linux I2O PCI support (c) 1999 Red Hat Software.\n");
+ i2o_pci_activate();
+ }
+}
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)