iommu/fsl_pamu: remove ->domain_window_enable
authorChristoph Hellwig <hch@lst.de>
Thu, 1 Apr 2021 15:52:42 +0000 (17:52 +0200)
committerJoerg Roedel <jroedel@suse.de>
Wed, 7 Apr 2021 08:56:52 +0000 (10:56 +0200)
commit376dfd2a2ff41596a6efc8ea56f8b0de172b04a6
tree9ed460396618730c1521e54a88ec49ec83b93593
parentba58d1216e2b2d2320b50591b767f50b13c623a8
iommu/fsl_pamu: remove ->domain_window_enable

The only thing that fsl_pamu_window_enable does for the current caller
is to fill in the prot value in the only dma_window structure, and to
propagate a few values from the iommu_domain_geometry struture into the
dma_window.  Remove the dma_window entirely, hardcode the prot value and
otherwise use the iommu_domain_geometry structure instead.

Remove the now unused ->domain_window_enable iommu method.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Li Yang <leoyang.li@nxp.com>
Link: https://lore.kernel.org/r/20210401155256.298656-7-hch@lst.de
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/fsl_pamu_domain.c
drivers/iommu/fsl_pamu_domain.h
drivers/iommu/iommu.c
drivers/soc/fsl/qbman/qman_portal.c
include/linux/iommu.h