[PATCH] minor rpaphp_pci.c patch

linas at austin.ibm.com linas at austin.ibm.com
Fri Jun 18 08:11:15 EST 2004


Hi Linda,

Could you apply the attached patch to the rpaphp_pci.c code?
Its a minor tweak that should not affect anything currently,
but it helps getting some of my development code working
correctly.

--linas
-------------- next part --------------
Index: drivers/pci/hotplug/rpaphp_pci.c
===================================================================
RCS file: /home/linas/cvsroot/eeh/drivers/pci/hotplug/rpaphp_pci.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- a/drivers/pci/hotplug/rpaphp_pci.c	16 Jun 2004 19:00:55 -0000	1.1
+++ b/drivers/pci/hotplug/rpaphp_pci.c	16 Jun 2004 19:03:32 -0000	1.2
@@ -284,8 +284,8 @@ int rpaphp_unconfig_pci_adapter(struct s
 		goto exit;
 	}
 	/* remove the device from the pci core */
-	eeh_remove_device(slot->dev.pci_dev);
 	pci_remove_bus_device(slot->dev.pci_dev);
+	eeh_remove_device(slot->dev.pci_dev);

 	slot->state = NOT_CONFIGURED;
 	info("%s: adapter in slot[%s] unconfigured.\n", __FUNCTION__,


More information about the Linuxppc64-dev mailing list