File tree Expand file tree Collapse file tree 2 files changed +0
-35
lines changed Expand file tree Collapse file tree 2 files changed +0
-35
lines changed Original file line number Diff line number Diff line change @@ -882,35 +882,6 @@ struct iommu_group *iommu_group_alloc(void)
882
882
}
883
883
EXPORT_SYMBOL_GPL (iommu_group_alloc );
884
884
885
- struct iommu_group * iommu_group_get_by_id (int id )
886
- {
887
- struct kobject * group_kobj ;
888
- struct iommu_group * group ;
889
- const char * name ;
890
-
891
- if (!iommu_group_kset )
892
- return NULL ;
893
-
894
- name = kasprintf (GFP_KERNEL , "%d" , id );
895
- if (!name )
896
- return NULL ;
897
-
898
- group_kobj = kset_find_obj (iommu_group_kset , name );
899
- kfree (name );
900
-
901
- if (!group_kobj )
902
- return NULL ;
903
-
904
- group = container_of (group_kobj , struct iommu_group , kobj );
905
- BUG_ON (group -> id != id );
906
-
907
- kobject_get (group -> devices_kobj );
908
- kobject_put (& group -> kobj );
909
-
910
- return group ;
911
- }
912
- EXPORT_SYMBOL_GPL (iommu_group_get_by_id );
913
-
914
885
/**
915
886
* iommu_group_get_iommudata - retrieve iommu_data registered for a group
916
887
* @group: the group
Original file line number Diff line number Diff line change @@ -460,7 +460,6 @@ extern bool iommu_present(struct bus_type *bus);
460
460
extern bool device_iommu_capable (struct device * dev , enum iommu_cap cap );
461
461
extern bool iommu_group_has_isolated_msi (struct iommu_group * group );
462
462
extern struct iommu_domain * iommu_domain_alloc (struct bus_type * bus );
463
- extern struct iommu_group * iommu_group_get_by_id (int id );
464
463
extern void iommu_domain_free (struct iommu_domain * domain );
465
464
extern int iommu_attach_device (struct iommu_domain * domain ,
466
465
struct device * dev );
@@ -746,11 +745,6 @@ static inline struct iommu_domain *iommu_domain_alloc(struct bus_type *bus)
746
745
return NULL ;
747
746
}
748
747
749
- static inline struct iommu_group * iommu_group_get_by_id (int id )
750
- {
751
- return NULL ;
752
- }
753
-
754
748
static inline void iommu_domain_free (struct iommu_domain * domain )
755
749
{
756
750
}
You can’t perform that action at this time.
0 commit comments