driver-core: Add device node pointer to struct device
[deliverable/linux.git] / arch / powerpc / kernel / pci-common.c
index 0c0567e58409ae006ae4f077d4a54e2a29fb81d4..88da282047c39c9ee73e0a66d6a667172e3e81aa 100644 (file)
@@ -1097,8 +1097,9 @@ void __devinit pcibios_setup_bus_devices(struct pci_bus *bus)
                if (dev->is_added)
                        continue;
 
-               /* Setup OF node pointer in archdata */
+               /* Setup OF node pointer in the device */
                sd->of_node = pci_device_to_OF_node(dev);
+               dev->dev.of_node = pci_device_to_OF_node(dev);
 
                /* Fixup NUMA node as it may not be setup yet by the generic
                 * code and is needed by the DMA init
This page took 0.03857 seconds and 5 git commands to generate.