projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a167607
)
PCI: use dev_to_node in pci_call_probe
author
Yinghai Lu
<Yinghai.Lu@Sun.COM>
Mon, 12 May 2008 19:21:05 +0000
(21:21 +0200)
committer
Thomas 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
patch
|
blob
|
history
diff --git
a/drivers/pci/pci-driver.c
b/drivers/pci/pci-driver.c
index 72cf61ed8f966d20f99c32d6acd77424e419ee69..e1637bd82b8e4cc28710ed4c2f02d581155764d6 100644
(file)
--- 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);