]> Pileus Git - ~andy/linux/blobdiff - arch/powerpc/kernel/of_platform.c
ath6kl: fix fw capability parsing
[~andy/linux] / arch / powerpc / kernel / of_platform.c
index e1612dfb4a930eca385a841bbbc967cb90c15b11..2049f2d00ffef60f0e7b1f9cfa5fc9cbd25a1758 100644 (file)
 #include <linux/of.h>
 #include <linux/of_device.h>
 #include <linux/of_platform.h>
+#include <linux/atomic.h>
 
 #include <asm/errno.h>
 #include <asm/topology.h>
 #include <asm/pci-bridge.h>
 #include <asm/ppc-pci.h>
-#include <linux/atomic.h>
+#include <asm/eeh.h>
 
 #ifdef CONFIG_PPC_OF_PLATFORM_PCI
 
@@ -66,6 +67,9 @@ static int __devinit of_pci_phb_probe(struct platform_device *dev)
        /* Init pci_dn data structures */
        pci_devs_phb_init_dynamic(phb);
 
+       /* Create EEH devices for the PHB */
+       eeh_dev_phb_init_dynamic(phb);
+
        /* Register devices with EEH */
 #ifdef CONFIG_EEH
        if (dev->dev.of_node->child)