]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/msm: don't return NULL from msm_iommu_new()
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Wed, 3 Sep 2025 10:51:51 +0000 (13:51 +0300)
committerRob Clark <robin.clark@oss.qualcomm.com>
Mon, 8 Sep 2025 14:24:58 +0000 (07:24 -0700)
commit618c11ea0b4a7c42eee9e5699d074c79be104f60
tree1257dede36fd116ae3d6438efb71e64b61e55470
parentc94fc6d35685587aa0cb9a8d7d7062c73ab04d89
drm/msm: don't return NULL from msm_iommu_new()

As we've dropped no-IOMMU support, there is no reason to specially
handle the no-IOMMU case inside msm_iommu_new(). Make it return -ENODEV
if there is no IOMMU (instead of returning NULL) and simplify all
calling sites accordingly.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/672561/
Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
drivers/gpu/drm/msm/adreno/a6xx_gmu.c
drivers/gpu/drm/msm/adreno/adreno_gpu.c
drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c
drivers/gpu/drm/msm/msm_iommu.c
drivers/gpu/drm/msm/msm_kms.c