summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/cell/setup.c
diff options
context:
space:
mode:
authorDaniel Axtens <dja@axtens.net>2015-03-31 08:00:55 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2015-04-11 13:49:17 +0300
commit9c1368fc50e78ff862a05d1a0995ce44413c49e2 (patch)
tree9b72f2b83df1272cef305f81727558bb00df18a7 /arch/powerpc/platforms/cell/setup.c
parent97884e00e29ad6654b8b6939bb805b9d6303427c (diff)
downloadlinux-9c1368fc50e78ff862a05d1a0995ce44413c49e2.tar.xz
powerpc/cell: Move controller ops from ppc_md to controller_ops
This moves the Cell 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>
Diffstat (limited to 'arch/powerpc/platforms/cell/setup.c')
-rw-r--r--arch/powerpc/platforms/cell/setup.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/cell/setup.c b/arch/powerpc/platforms/cell/setup.c
index d62aa982d530..d1be268b1e6e 100644
--- a/arch/powerpc/platforms/cell/setup.c
+++ b/arch/powerpc/platforms/cell/setup.c
@@ -54,6 +54,7 @@
#include <asm/cell-regs.h>
#include <asm/io-workarounds.h>
+#include "cell.h"
#include "interrupt.h"
#include "pervasive.h"
#include "ras.h"
@@ -131,6 +132,8 @@ static int cell_setup_phb(struct pci_controller *phb)
if (model == NULL || strcmp(np->name, "pci"))
return 0;
+ phb->controller_ops = cell_pci_controller_ops;
+
/* Setup workarounds for spider */
if (strcmp(model, "Spider"))
return 0;
@@ -279,3 +282,5 @@ define_machine(cell) {
.init_IRQ = cell_init_irq,
.pci_setup_phb = cell_setup_phb,
};
+
+struct pci_controller_ops cell_pci_controller_ops;