Skip to content

Commit 262948f

Browse files
John Garryjoergroedel
authored andcommitted
iommu: Delete iommu_dev_has_feature()
Function iommu_dev_has_feature() has never been referenced in the tree, and there does not appear to be anything coming soon to use it, so delete it. Signed-off-by: John Garry <[email protected]> Acked-by: Will Deacon <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent ab0a711 commit 262948f

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

drivers/iommu/iommu.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2853,17 +2853,6 @@ EXPORT_SYMBOL_GPL(iommu_fwspec_add_ids);
28532853
/*
28542854
* Per device IOMMU features.
28552855
*/
2856-
bool iommu_dev_has_feature(struct device *dev, enum iommu_dev_features feat)
2857-
{
2858-
const struct iommu_ops *ops = dev->bus->iommu_ops;
2859-
2860-
if (ops && ops->dev_has_feat)
2861-
return ops->dev_has_feat(dev, feat);
2862-
2863-
return false;
2864-
}
2865-
EXPORT_SYMBOL_GPL(iommu_dev_has_feature);
2866-
28672856
int iommu_dev_enable_feature(struct device *dev, enum iommu_dev_features feat)
28682857
{
28692858
const struct iommu_ops *ops = dev->bus->iommu_ops;

include/linux/iommu.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,6 @@ static inline void dev_iommu_priv_set(struct device *dev, void *priv)
626626
int iommu_probe_device(struct device *dev);
627627
void iommu_release_device(struct device *dev);
628628

629-
bool iommu_dev_has_feature(struct device *dev, enum iommu_dev_features f);
630629
int iommu_dev_enable_feature(struct device *dev, enum iommu_dev_features f);
631630
int iommu_dev_disable_feature(struct device *dev, enum iommu_dev_features f);
632631
bool iommu_dev_feature_enabled(struct device *dev, enum iommu_dev_features f);
@@ -975,12 +974,6 @@ const struct iommu_ops *iommu_ops_from_fwnode(struct fwnode_handle *fwnode)
975974
return NULL;
976975
}
977976

978-
static inline bool
979-
iommu_dev_has_feature(struct device *dev, enum iommu_dev_features feat)
980-
{
981-
return false;
982-
}
983-
984977
static inline bool
985978
iommu_dev_feature_enabled(struct device *dev, enum iommu_dev_features feat)
986979
{

0 commit comments

Comments
 (0)