Skip to content

Commit da2bb0d

Browse files
aikmpe
authored andcommitted
powerpc/powernv: Remove useless wrapper
This gets rid of a useless wrapper around pnv_pci_ioda2_table_free_pages(). Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 2bf1071 commit da2bb0d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2199,11 +2199,6 @@ static void pnv_ioda2_tce_free(struct iommu_table *tbl, long index,
21992199
pnv_pci_ioda2_tce_invalidate(tbl, index, npages, false);
22002200
}
22012201

2202-
static void pnv_ioda2_table_free(struct iommu_table *tbl)
2203-
{
2204-
pnv_pci_ioda2_table_free_pages(tbl);
2205-
}
2206-
22072202
static struct iommu_table_ops pnv_ioda2_iommu_ops = {
22082203
.set = pnv_ioda2_tce_build,
22092204
#ifdef CONFIG_IOMMU_API
@@ -2212,7 +2207,7 @@ static struct iommu_table_ops pnv_ioda2_iommu_ops = {
22122207
#endif
22132208
.clear = pnv_ioda2_tce_free,
22142209
.get = pnv_tce_get,
2215-
.free = pnv_ioda2_table_free,
2210+
.free = pnv_pci_ioda2_table_free_pages,
22162211
};
22172212

22182213
static int pnv_pci_ioda_dev_dma_weight(struct pci_dev *dev, void *data)

0 commit comments

Comments
 (0)