powerpc/eeh: Fix crash when adding a device in a slot with DDW
[pandora-kernel.git] / arch / powerpc / kernel / of_platform.c
index e1612df..b10beef 100644 (file)
@@ -91,6 +91,9 @@ static int __devinit of_pci_phb_probe(struct platform_device *dev)
        /* Add probed PCI devices to the device model */
        pci_bus_add_devices(phb->bus);
 
+       /* sysfs files should only be added after devices are added */
+       eeh_add_sysfs_files(phb->bus);
+
        return 0;
 }