History

iommu: Remove add_device()/remove_device() code-paths

All drivers are converted to use the probe/release_device() call-backs, so the add_device/remove_device() pointers are unused and the code using them can be removed.

Joerg Roedel committed 6 years ago

Commit 3eeeb451 parent 3c51c052 files · +38 −124Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/iommu.h+0−4
@@ -223,8 +223,6 @@ struct iommu_iotlb_gather { · 222 unmodified lines
223223 * @iotlb_sync: Flush all queued ranges from the hardware TLBs and empty flush
224224 * queue
225225 * @iova_to_phys: translate iova to physical address
226− * @add_device: add device to iommu grouping
227− * @remove_device: remove device from iommu grouping
228226 * @probe_device: Add device to iommu driver handling
229227 * @release_device: Remove device from iommu driver handling
230228 * @probe_finalize: Do final setup work after the device is added to an IOMMU
@@ -277,8 +275,6 @@ struct iommu_ops { · 46 unmodified lines
277275 void (*iotlb_sync)(struct iommu_domain *domain,
278276 struct iommu_iotlb_gather *iotlb_gather);
279277 phys_addr_t (*iova_to_phys)(struct iommu_domain *domain, dma_addr_t iova);
280− int (*add_device)(struct device *dev);
281− void (*remove_device)(struct device *dev);
282278 struct iommu_device *(*probe_device)(struct device *dev);
283279 void (*release_device)(struct device *dev);
284280 void (*probe_finalize)(struct device *dev);