From: Yinghai Lu Date: Mon, 12 May 2008 19:21:05 +0000 (+0200) Subject: PCI: use dev_to_node in pci_call_probe X-Git-Tag: v2.6.26-rc7~37^2~1^2~5 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=4efeb4dd3c0bf534e431a8e7c72d0afbd4cd24aa;p=linux-2.6-omap-h63xx.git PCI: use dev_to_node in pci_call_probe to make sure get one online node. Signed-off-by: Yinghai Lu Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c index 72cf61ed8f9..e1637bd82b8 100644 --- a/drivers/pci/pci-driver.c +++ b/drivers/pci/pci-driver.c @@ -181,7 +181,7 @@ static int pci_call_probe(struct pci_driver *drv, struct pci_dev *dev, any need to change it. */ struct mempolicy *oldpol; cpumask_t oldmask = current->cpus_allowed; - int node = pcibus_to_node(dev->bus); + int node = dev_to_node(&dev->dev); if (node >= 0) { node_to_cpumask_ptr(nodecpumask, node);