]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
PCI: use dev_to_node in pci_call_probe
authorYinghai Lu <Yinghai.Lu@Sun.COM>
Mon, 12 May 2008 19:21:05 +0000 (21:21 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 24 May 2008 10:09:46 +0000 (12:09 +0200)
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>
drivers/pci/pci-driver.c

index 72cf61ed8f966d20f99c32d6acd77424e419ee69..e1637bd82b8e4cc28710ed4c2f02d581155764d6 100644 (file)
@@ -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);