The current ppc64 rpaphp code uses an old, deprecated routine to find all of the pci devices on the system. This patch changes this to use the new API. This is a janitorial patch. Signed-off-by: Linas Vepstas Index: linux-2.6.13-rc6-git9/drivers/pci/hotplug/rpaphp_core.c =================================================================== --- linux-2.6.13-rc6-git9.orig/drivers/pci/hotplug/rpaphp_core.c 2005-07-15 16:18:57.000000000 -0500 +++ linux-2.6.13-rc6-git9/drivers/pci/hotplug/rpaphp_core.c 2005-08-17 17:11:34.000000000 -0500 @@ -416,11 +416,11 @@ * init_slots - initialize 'struct slot' structures for each slot * */ -static void init_slots(void) +static void __init init_slots(void) { - struct device_node *dn; + struct device_node *dn = NULL; - for (dn = find_all_nodes(); dn; dn = dn->next) + while ((dn = of_find_all_nodes(dn))) rpaphp_add_slot(dn); } --