powerpc/pseries/pci: Add support of MSI domains to PHB hotplug
[linux-2.6-microblaze.git] / arch / powerpc / platforms / pseries / pci_dlpar.c
index a8f9140..90c9d35 100644 (file)
@@ -33,6 +33,8 @@ struct pci_controller *init_phb_dynamic(struct device_node *dn)
 
        pci_devs_phb_init_dynamic(phb);
 
+       pseries_msi_allocate_domains(phb);
+
        /* Create EEH devices for the PHB */
        eeh_phb_pe_create(phb);
 
@@ -74,6 +76,8 @@ int remove_phb_dynamic(struct pci_controller *phb)
                }
        }
 
+       pseries_msi_free_domains(phb);
+
        /* Remove the PCI bus and unregister the bridge device from sysfs */
        phb->bus = NULL;
        pci_remove_bus(b);