]> git.baikalelectronics.ru Git - kernel.git/commit
powernv/pci: Fold pnv_pci_dma_dev_setup() into the pci-ioda.c version
authorOliver O'Halloran <oohall@gmail.com>
Fri, 10 Jan 2020 07:02:06 +0000 (18:02 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 23 Jan 2020 10:31:22 +0000 (21:31 +1100)
commit03129022312815a090c22dee7ddebbbe1ad60796
tree8e2dcdd32648b62fb438e2fcf4429640e943e1ee
parent59f511e81ecfa305cbfdb9705e2d9c3ea6b14a7b
powernv/pci: Fold pnv_pci_dma_dev_setup() into the pci-ioda.c version

pnv_pci_dma_dev_setup() does nothing but call the phb->dma_dev_setup()
callback, if one exists. That callback is only set for normal PCIe PHBs so
we can remove the layer of indirection and use the ioda version in
the pci_controller_ops.

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