@@ -5745,15 +5745,6 @@ static void intel_iommu_get_resv_regions(struct device *device,
5745
5745
list_add_tail (& reg -> list , head );
5746
5746
}
5747
5747
5748
- static void intel_iommu_put_resv_regions (struct device * dev ,
5749
- struct list_head * head )
5750
- {
5751
- struct iommu_resv_region * entry , * next ;
5752
-
5753
- list_for_each_entry_safe (entry , next , head , list )
5754
- kfree (entry );
5755
- }
5756
-
5757
5748
int intel_iommu_enable_pasid (struct intel_iommu * iommu , struct device * dev )
5758
5749
{
5759
5750
struct device_domain_info * info ;
@@ -5988,7 +5979,7 @@ const struct iommu_ops intel_iommu_ops = {
5988
5979
.add_device = intel_iommu_add_device ,
5989
5980
.remove_device = intel_iommu_remove_device ,
5990
5981
.get_resv_regions = intel_iommu_get_resv_regions ,
5991
- .put_resv_regions = intel_iommu_put_resv_regions ,
5982
+ .put_resv_regions = generic_iommu_put_resv_regions ,
5992
5983
.apply_resv_region = intel_iommu_apply_resv_region ,
5993
5984
.device_group = pci_device_group ,
5994
5985
.dev_has_feat = intel_iommu_dev_has_feat ,
0 commit comments