drm/msm: switch msm_kms_init_aspace() to use device_iommu_mapped()
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Thu, 16 Jun 2022 08:11:06 +0000 (11:11 +0300)
committerRob Clark <robdclark@chromium.org>
Thu, 7 Jul 2022 01:54:41 +0000 (18:54 -0700)
commitb571cb5273ad2feacc75ab2d951d950534aa589d
tree14d80d0d2f3ab368b4f5011e8eec8eecc3c80a15
parent40ae54ed734a112c09fb80e2ee16a6bbb733aed4
drm/msm: switch msm_kms_init_aspace() to use device_iommu_mapped()

Change msm_kms_init_aspace() to use generic function
device_iommu_mapped() instead of the fwnode-specific interface
dev_iommu_fwspec_get(). While we are at it, stop referencing
platform_bus_type directly and use the bus of the IOMMU device.

Suggested-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/489703/
Link: https://lore.kernel.org/r/20220616081106.350262-6-dmitry.baryshkov@linaro.org
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/msm_drv.c