aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/powernv/pci-ioda.c
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2020-01-10 18:02:04 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2020-01-23 21:31:21 +1100
commitac1172019593f80818a2fdc406d3d30d8bbb05f2 (patch)
tree214654c6f50e0b0e0f61b2b55c3e74fd81993292 /arch/powerpc/platforms/powernv/pci-ioda.c
parentpowerpc/pci: Fold pcibios_setup_device() into pcibios_bus_add_device() (diff)
downloadlinux-dev-ac1172019593f80818a2fdc406d3d30d8bbb05f2.tar.xz
linux-dev-ac1172019593f80818a2fdc406d3d30d8bbb05f2.zip
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
Diffstat (limited to '')
-rw-r--r--arch/powerpc/platforms/powernv/pci-ioda.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c b/arch/powerpc/platforms/powernv/pci-ioda.c
index 40b2928efe78..2b664b0caea3 100644
--- a/arch/powerpc/platforms/powernv/pci-ioda.c
+++ b/arch/powerpc/platforms/powernv/pci-ioda.c
@@ -3683,7 +3683,6 @@ static const struct pci_controller_ops pnv_pci_ioda_controller_ops = {
};
static const struct pci_controller_ops pnv_npu_ioda_controller_ops = {
- .dma_dev_setup = pnv_pci_dma_dev_setup,
.setup_msi_irqs = pnv_setup_msi_irqs,
.teardown_msi_irqs = pnv_teardown_msi_irqs,
.enable_device_hook = pnv_pci_enable_device_hook,