powerpc/powernv: Specialise pci_controller_ops for each controller type
authorDaniel Axtens <dja@axtens.net>
Tue, 28 Apr 2015 05:12:05 +0000 (15:12 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 2 Jun 2015 03:18:49 +0000 (13:18 +1000)
commit92ae03532619dc24fdb7a5ae8ea63785fbd39f86
treef6844b97be4268bdd8a8fe8685e66e732d78b114
parent1f88d5860e0b8244b28e21b63a521915e5c15313
powerpc/powernv: Specialise pci_controller_ops for each controller type

Remove powernv generic PCI controller operations. Replace it with
controller ops for each of the two supported PHBs.

As an added bonus, make the two new structs const, which will help
guard against bugs such as the one introduced in 65ebf4b63
("powerpc/powernv: Move controller ops from ppc_md to controller_ops")

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