diff options
author | Joerg Roedel <jroedel@suse.de> | 2020-06-25 15:08:24 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2020-06-30 11:59:48 +0200 |
commit | 0f45b04da18305726c18d4b6169c4083f301d91c (patch) | |
tree | 673f2a24990fad156a9b9e96c36339501337ff3c /drivers/media | |
parent | 970471914c67b70df24def6b2a30cc42acbebded (diff) | |
download | linux-stable-0f45b04da18305726c18d4b6169c4083f301d91c.tar.gz linux-stable-0f45b04da18305726c18d4b6169c4083f301d91c.tar.bz2 linux-stable-0f45b04da18305726c18d4b6169c4083f301d91c.zip |
iommu/exynos: Use dev_iommu_priv_get/set()
Remove the use of dev->archdata.iommu and use the private per-device
pointer provided by IOMMU core code instead.
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20200625130836.1916-2-joro@8bytes.org
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/platform/s5p-mfc/s5p_mfc_iommu.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_iommu.h b/drivers/media/platform/s5p-mfc/s5p_mfc_iommu.h index 152a713fff78..1a32266b7ddc 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_iommu.h +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_iommu.h @@ -9,9 +9,11 @@ #if defined(CONFIG_EXYNOS_IOMMU) +#include <linux/iommu.h> + static inline bool exynos_is_iommu_available(struct device *dev) { - return dev->archdata.iommu != NULL; + return dev_iommu_priv_get(dev) != NULL; } #else |