Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39767
b: refs/heads/master
c: 284a940
h: refs/heads/master
i:
  39765: 857eee6
  39763: ac7433c
  39759: 56b471c
v: v3
  • Loading branch information
Anton Blanchard authored and Paul Mackerras committed Oct 16, 2006
1 parent f9a5248 commit 36297bc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 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: 00ae36de49cc718d4122e1c8aac96fd1a5a2553c
refs/heads/master: 284a940675a64df253e3dffc60b09bb4bbb149e4
10 changes: 8 additions & 2 deletions trunk/arch/powerpc/kernel/pci_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,14 @@ struct pci_controller * pcibios_alloc_controller(struct device_node *dev)
pci_setup_pci_controller(phb);
phb->arch_data = dev;
phb->is_dynamic = mem_init_done;
if (dev)
PHB_SET_NODE(phb, of_node_to_nid(dev));
if (dev) {
int nid = of_node_to_nid(dev);

if (nid < 0 || !node_online(nid))
nid = -1;

PHB_SET_NODE(phb, nid);
}
return phb;
}

Expand Down

0 comments on commit 36297bc

Please sign in to comment.