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>
这个提交包含在:
Daniel Axtens
2015-03-31 16:00:55 +11:00
提交者 Michael Ellerman
父节点 97884e00e2
当前提交 9c1368fc50
修改 3 个文件,包含 33 行新增3 行删除

查看文件

@@ -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;