summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci-driver.c
diff options
context:
space:
mode:
authorYinghai Lu <Yinghai.Lu@Sun.COM>2008-05-12 21:21:05 +0200
committerThomas Gleixner <tglx@linutronix.de>2008-05-24 12:09:46 +0200
commit4efeb4dd3c0bf534e431a8e7c72d0afbd4cd24aa (patch)
treeb329d8ce522354181f55b168b0fa1e6420c1930f /drivers/pci/pci-driver.c
parentPCI: Correct last two HP entries in the bfsort whitelist (diff)
downloadlinux-4efeb4dd3c0bf534e431a8e7c72d0afbd4cd24aa.tar.xz
linux-4efeb4dd3c0bf534e431a8e7c72d0afbd4cd24aa.zip
PCI: use dev_to_node in pci_call_probe
to make sure get one online node. Signed-off-by: Yinghai Lu <yinghai.lu@sun.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/pci/pci-driver.c')
-rw-r--r--drivers/pci/pci-driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c
index 72cf61ed8f96..e1637bd82b8e 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);