aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/pci_64.c
diff options
context:
space:
mode:
authorBecky Bruce <becky.bruce@freescale.com>2008-09-08 05:09:54 -0400
committerKumar Gala <galak@kernel.crashing.org>2008-09-24 17:26:43 -0400
commit8fae0353247530d2124b2419052fa6120462fa99 (patch)
tree9690fc84a069869edb282508c40dc7f9a6aa1775 /arch/powerpc/kernel/pci_64.c
parent8dd0e95206f7c33bed2aed33ac668335174684e8 (diff)
powerpc: Drop archdata numa_node
Use the struct device's numa_node instead; use accessor functions to get/set numa_node. Signed-off-by: Becky Bruce <becky.bruce@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/pci_64.c')
-rw-r--r--arch/powerpc/kernel/pci_64.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/powerpc/kernel/pci_64.c b/arch/powerpc/kernel/pci_64.c
index 30eedfc5a566..1f75bf03446f 100644
--- a/arch/powerpc/kernel/pci_64.c
+++ b/arch/powerpc/kernel/pci_64.c
@@ -558,11 +558,8 @@ void __devinit pcibios_setup_new_device(struct pci_dev *dev)
558 sd->of_node ? sd->of_node->full_name : "<none>"); 558 sd->of_node ? sd->of_node->full_name : "<none>");
559 559
560 sd->dma_ops = pci_dma_ops; 560 sd->dma_ops = pci_dma_ops;
561#ifdef CONFIG_NUMA 561 set_dev_node(&dev->dev, pcibus_to_node(dev->bus));
562 sd->numa_node = pcibus_to_node(dev->bus); 562
563#else
564 sd->numa_node = -1;
565#endif
566 if (ppc_md.pci_dma_dev_setup) 563 if (ppc_md.pci_dma_dev_setup)
567 ppc_md.pci_dma_dev_setup(dev); 564 ppc_md.pci_dma_dev_setup(dev);
568} 565}