[Linux-ia64] PCI hotplug changes for 2.5.39 or later

From: Lee, Jung-Ik <jung-ik.lee_at_intel.com>
Date: 2002-10-18 21:10:56
The following patch fixes ia64 kernel dump on Hot-Add of PCI bridge cards.

	pcibios_fixup_bus();
	pci_do_scan_bus();
	on Hot-Add of bridge adapter;

Thanks,
J.I.

============================================================================
diff -urN linux-2.5.39-ia64-020928/arch/ia64/pci/pci.c
linux-2.5.39-phpv-src/arch/ia64/pci/pci.c
--- linux-2.5.39-ia64-020928/arch/ia64/pci/pci.c	Fri Sep 27 14:49:51
2002
+++ linux-2.5.39-phpv-src/arch/ia64/pci/pci.c	Fri Oct 18 02:39:00 2002
@@ -141,13 +141,13 @@
 /*
  *  Called after each bus is probed, but before its children are examined.
  */
-void __init
+void __devinit
 pcibios_fixup_bus (struct pci_bus *b)
 {
 	return;
 }
 
-void __init
+void __devinit
 pcibios_update_resource (struct pci_dev *dev, struct resource *root,
 			 struct resource *res, int resource)
 {
@@ -163,7 +163,7 @@
 	/* ??? FIXME -- record old value for shutdown.  */
 }
 
-void __init
+void __devinit
 pcibios_update_irq (struct pci_dev *dev, int irq)
 {
 	pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq);
@@ -171,7 +171,7 @@
 	/* ??? FIXME -- record old value for shutdown.  */
 }
 
-void __init
+void __devinit
 pcibios_fixup_pbus_ranges (struct pci_bus * bus, struct
pbus_set_ranges_data * ranges)
 {
 }
Received on Fri Oct 18 04:12:10 2002

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:10 EST