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.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -223,8 +223,6 @@ struct iommu_iotlb_gather { · 222 unmodified lines | ||
| 223 | 223 | * @iotlb_sync: Flush all queued ranges from the hardware TLBs and empty flush |
| 224 | 224 | * queue |
| 225 | 225 | * @iova_to_phys: translate iova to physical address |
| 226 | − * @add_device: add device to iommu grouping | |
| 227 | − * @remove_device: remove device from iommu grouping | |
| 228 | 226 | * @probe_device: Add device to iommu driver handling |
| 229 | 227 | * @release_device: Remove device from iommu driver handling |
| 230 | 228 | * @probe_finalize: Do final setup work after the device is added to an IOMMU |
| @@ -277,8 +275,6 @@ struct iommu_ops { · 46 unmodified lines | ||
| 277 | 275 | void (*iotlb_sync)(struct iommu_domain *domain, |
| 278 | 276 | struct iommu_iotlb_gather *iotlb_gather); |
| 279 | 277 | 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); | |
| 282 | 278 | struct iommu_device *(*probe_device)(struct device *dev); |
| 283 | 279 | void (*release_device)(struct device *dev); |
| 284 | 280 | void (*probe_finalize)(struct device *dev); |