powerpc/powernv: Move controller ops from ppc_md to controller_ops
[linux-2.6-block.git] / arch / powerpc / platforms / powernv / pci.c
index 4aa2e74534e87b3904537b747f71cb3ee9526d1b..fa96aa8aa1e2dc8ac5e20a2fcadca3d1a4f1e2fa 100644 (file)
@@ -744,7 +744,6 @@ void __init pnv_pci_init(void)
        pci_devs_phb_init();
 
        /* Configure IOMMU DMA hooks */
-       ppc_md.pci_dma_dev_setup = pnv_pci_dma_dev_setup;
        ppc_md.tce_build = pnv_tce_build_vm;
        ppc_md.tce_free = pnv_tce_free_vm;
        ppc_md.tce_build_rm = pnv_tce_build_rm;
@@ -760,3 +759,7 @@ void __init pnv_pci_init(void)
 }
 
 machine_subsys_initcall_sync(powernv, tce_iommu_bus_notifier_init);
+
+struct pci_controller_ops pnv_pci_controller_ops = {
+       .dma_dev_setup = pnv_pci_dma_dev_setup,
+};