diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/base/core.c | 1 | ||||
-rw-r--r-- | drivers/pci/probe.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index e4b530ef757d..67b79a7592a9 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c | |||
@@ -386,6 +386,7 @@ void device_initialize(struct device *dev) | |||
386 | INIT_LIST_HEAD(&dev->node); | 386 | INIT_LIST_HEAD(&dev->node); |
387 | init_MUTEX(&dev->sem); | 387 | init_MUTEX(&dev->sem); |
388 | device_init_wakeup(dev, 0); | 388 | device_init_wakeup(dev, 0); |
389 | set_dev_node(dev, -1); | ||
389 | } | 390 | } |
390 | 391 | ||
391 | #ifdef CONFIG_SYSFS_DEPRECATED | 392 | #ifdef CONFIG_SYSFS_DEPRECATED |
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 0eeac60042b3..6a3c1e728900 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c | |||
@@ -873,6 +873,7 @@ void __devinit pci_device_add(struct pci_dev *dev, struct pci_bus *bus) | |||
873 | dev->dev.release = pci_release_dev; | 873 | dev->dev.release = pci_release_dev; |
874 | pci_dev_get(dev); | 874 | pci_dev_get(dev); |
875 | 875 | ||
876 | set_dev_node(&dev->dev, pcibus_to_node(bus)); | ||
876 | dev->dev.dma_mask = &dev->dma_mask; | 877 | dev->dev.dma_mask = &dev->dma_mask; |
877 | dev->dev.coherent_dma_mask = 0xffffffffull; | 878 | dev->dev.coherent_dma_mask = 0xffffffffull; |
878 | 879 | ||