powernv/pci: Remove dma_dev_setup() for NPU PHBs
authorOliver O'Halloran <oohall@gmail.com>
Fri, 10 Jan 2020 07:02:04 +0000 (18:02 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 23 Jan 2020 10:31:21 +0000 (21:31 +1100)
commitac1172019593f80818a2fdc406d3d30d8bbb05f2
tree214654c6f50e0b0e0f61b2b55c3e74fd81993292
parent3ab3f3c9df348324029e3fbdf381f551b1df8f1e
powernv/pci: Remove dma_dev_setup() for NPU PHBs

The pnv_pci_dma_dev_setup() only does something when:

1) There PHB contains VFs, or
2) The PHB defines a dma_dev_setup() callback in the pnv_phb structure.

Neither is true for NPU PHBs so there's no reason to set the callback.

Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200110070207.439-3-oohall@gmail.com
arch/powerpc/platforms/powernv/pci-ioda.c