Skip to content

Commit 6248ac9

Browse files
Christoph Hellwigmpe
authored andcommitted
powerpc/powernv: remove pnv_npu_dma_set_mask
These devices are not PCIe devices and do not have associated dma map ops, so this is just dead code. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 661fcb4 commit 6248ac9

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

‎arch/powerpc/platforms/powernv/pci-ioda.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3646,22 +3646,13 @@ static const struct pci_controller_ops pnv_pci_ioda_controller_ops = {
36463646
.shutdown = pnv_pci_ioda_shutdown,
36473647
};
36483648

3649-
static int pnv_npu_dma_set_mask(struct pci_dev *npdev, u64 dma_mask)
3650-
{
3651-
dev_err_once(&npdev->dev,
3652-
"%s operation unsupported for NVLink devices\n",
3653-
__func__);
3654-
return -EPERM;
3655-
}
3656-
36573649
static const struct pci_controller_ops pnv_npu_ioda_controller_ops = {
36583650
.dma_dev_setup = pnv_pci_dma_dev_setup,
36593651
.setup_msi_irqs = pnv_setup_msi_irqs,
36603652
.teardown_msi_irqs = pnv_teardown_msi_irqs,
36613653
.enable_device_hook = pnv_pci_enable_device_hook,
36623654
.window_alignment = pnv_pci_window_alignment,
36633655
.reset_secondary_bus = pnv_pci_reset_secondary_bus,
3664-
.dma_set_mask = pnv_npu_dma_set_mask,
36653656
.shutdown = pnv_pci_ioda_shutdown,
36663657
.disable_device = pnv_npu_disable_device,
36673658
};

0 commit comments

Comments
 (0)