powerpc/powernv: Fix early pci_controller_ops loading.
authorDaniel Axtens <dja@axtens.net>
Mon, 27 Apr 2015 02:33:51 +0000 (12:33 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 29 Apr 2015 09:43:58 +0000 (19:43 +1000)
commitd33047fd7e7d93662622888681861ba84d43c506
tree0db0b615b405a7405dff852d1d311025c1af2ea5
parent433c5c20c505fef92be84c6afab70f1c2ab5eda3
powerpc/powernv: Fix early pci_controller_ops loading.

Load the PowerNV platform pci controller ops into pci controllers
after all the operations are loaded into the platform ops struct, not
before.

Otherwise we aren't actually setting the ops properly which can break
IO for some devices.

Fixes: 65ebf4b63 ("powerpc/powernv: Move controller ops from ppc_md to controller_ops")
Reported-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Reviewed-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/pci-ioda.c