summaryrefslogtreecommitdiff
path: root/include/linux/iommu.h
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2018-11-30 10:31:59 +0100
committerJoerg Roedel <jroedel@suse.de>2018-12-17 12:47:50 +0100
commitcc5aed44a3a8e4fca721636cf881a52f8d68a098 (patch)
treef2c0e3730930f889a8d7fbde52853404057b8860 /include/linux/iommu.h
parent6954cf9bfda153f9544c63761aabf0199710aec3 (diff)
iommu: Consolitate ->add/remove_device() calls
Put them into separate functions and call those where the plain ops have been called before. Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include/linux/iommu.h')
-rw-r--r--include/linux/iommu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/iommu.h b/include/linux/iommu.h
index 26225f762cd7..e90da6b6f3d1 100644
--- a/include/linux/iommu.h
+++ b/include/linux/iommu.h
@@ -409,6 +409,9 @@ static inline void dev_iommu_fwspec_set(struct device *dev,
dev->iommu_fwspec = fwspec;
}
+int iommu_probe_device(struct device *dev);
+void iommu_release_device(struct device *dev);
+
#else /* CONFIG_IOMMU_API */
struct iommu_ops {};