drm/mediatek: Stop using iommu_present()
authorRobin Murphy <robin.murphy@arm.com>
Thu, 23 Nov 2023 13:41:12 +0000 (13:41 +0000)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Thu, 7 Dec 2023 23:27:11 +0000 (23:27 +0000)
commitc5a761e2fe58631e1cd0249a729ce1934a11bcbe
tree4fe3b38acc7544af15495f01ae57492c9a3753b3
parent3e743b0fcb90551106c13837548079b91d661384
drm/mediatek: Stop using iommu_present()

Remove the pointless check. If an IOMMU is providing transparent DMA API
ops for any device(s) we care about, the DT code will have enforced the
appropriate probe ordering already. And if the IOMMU *is* entirely
absent, then attempting to go ahead with CMA and either suceeding or
failing decisively seems more useful than deferring forever.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/fd1b62aa006556f29f37535814abfe41be63f7ae.1700746094.git.robin.murphy@arm.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_drm_drv.c