Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17502
b: refs/heads/master
c: d681db4
h: refs/heads/master
v: v3
  • Loading branch information
linas@austin.ibm.com authored and Greg Kroah-Hartman committed Jan 9, 2006
1 parent 02b677c commit 8c2897d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 81745512c6bb78fc78265b881206b3f6800dd09f
refs/heads/master: d681db4aed4453c7d34adfbb64956271186514e9
3 changes: 2 additions & 1 deletion trunk/drivers/pci/hotplug/rpadlpar_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ static struct pci_dev *dlpar_pci_add_bus(struct device_node *dn)
struct pci_controller *phb = pdn->phb;
struct pci_dev *dev = NULL;

rpaphp_eeh_init_nodes(dn);
eeh_add_device_tree_early(dn);

/* Add EADS device to PHB bus, adding new entry to bus->devices */
dev = of_create_pci_dev(dn, phb->bus, pdn->devfn);
if (!dev) {
Expand Down
14 changes: 1 addition & 13 deletions trunk/drivers/pci/hotplug/rpaphp_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,18 +287,6 @@ rpaphp_pci_config_slot(struct pci_bus *bus)
return dev;
}

void rpaphp_eeh_init_nodes(struct device_node *dn)
{
struct device_node *sib;

for (sib = dn->child; sib; sib = sib->sibling)
rpaphp_eeh_init_nodes(sib);
eeh_add_device_early(dn);
return;

}
EXPORT_SYMBOL_GPL(rpaphp_eeh_init_nodes);

static void print_slot_pci_funcs(struct pci_bus *bus)
{
struct device_node *dn;
Expand All @@ -324,7 +312,7 @@ int rpaphp_config_pci_adapter(struct pci_bus *bus)
if (!dn)
goto exit;

rpaphp_eeh_init_nodes(dn);
eeh_add_device_tree_early(dn);
dev = rpaphp_pci_config_slot(bus);
if (!dev) {
err("%s: can't find any devices.\n", __FUNCTION__);
Expand Down

0 comments on commit 8c2897d

Please sign in to comment.