powerpc/maple: Move controller ops from ppc_md to controller_ops
authorDaniel Axtens <dja@axtens.net>
Tue, 31 Mar 2015 05:00:53 +0000 (16:00 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 11 Apr 2015 10:49:17 +0000 (20:49 +1000)
This moves the Maple platform to use the pci_controller_ops
structure rather than ppc_md for PCI controller operations.

Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/maple/maple.h
arch/powerpc/platforms/maple/pci.c
arch/powerpc/platforms/maple/setup.c

index c6911ddc479fc309bec1066a77fc044b6af7cd04..eecfa182b06ea267ebdf625edd525f45439a4a1e 100644 (file)
@@ -10,3 +10,5 @@ extern void maple_calibrate_decr(void);
 extern void maple_pci_init(void);
 extern void maple_pci_irq_fixup(struct pci_dev *dev);
 extern int maple_pci_get_legacy_ide_irq(struct pci_dev *dev, int channel);
+
+extern struct pci_controller_ops maple_pci_controller_ops;
index d3a13067ec426ec3472a7dadaa2ea1dbedccac05..a923230e575bcab1724e7cc7d8c4166e38adf7b8 100644 (file)
@@ -510,6 +510,7 @@ static int __init maple_add_bridge(struct device_node *dev)
                return -ENOMEM;
        hose->first_busno = bus_range ? bus_range[0] : 0;
        hose->last_busno = bus_range ? bus_range[1] : 0xff;
+       hose->controller_ops = maple_pci_controller_ops;
 
        disp_name = NULL;
        if (of_device_is_compatible(dev, "u3-agp")) {
@@ -660,3 +661,6 @@ static void quirk_ipr_msi(struct pci_dev *dev)
 }
 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_IBM, PCI_DEVICE_ID_IBM_OBSIDIAN,
                        quirk_ipr_msi);
+
+struct pci_controller_ops maple_pci_controller_ops = {
+};
index 3bf2e0359d5e7645909b94f3c6899303dcd8b716..a837188544c8add6730b1df53abb27791071e347 100644 (file)
@@ -203,7 +203,7 @@ static void __init maple_init_early(void)
 {
        DBG(" -> maple_init_early\n");
 
-       iommu_init_early_dart(NULL);
+       iommu_init_early_dart(&maple_pci_controller_ops);
 
        DBG(" <- maple_init_early\n");
 }