Skip to content

Commit a820447

Browse files
LuBaolujoergroedel
authored andcommitted
iommu/vt-d: Rename domain_add_dev_info()
dmar_domain_attach_device() is more meaningful according to what this helper does. Signed-off-by: Lu Baolu <[email protected]> Reviewed-by: Kevin Tian <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent ba50213 commit a820447

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/iommu/intel/iommu.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2453,7 +2453,8 @@ static int __init si_domain_init(int hw)
24532453
return 0;
24542454
}
24552455

2456-
static int domain_add_dev_info(struct dmar_domain *domain, struct device *dev)
2456+
static int dmar_domain_attach_device(struct dmar_domain *domain,
2457+
struct device *dev)
24572458
{
24582459
struct device_domain_info *info = dev_iommu_priv_get(dev);
24592460
struct intel_iommu *iommu;
@@ -4288,7 +4289,7 @@ static int intel_iommu_attach_device(struct iommu_domain *domain,
42884289
if (ret)
42894290
return ret;
42904291

4291-
return domain_add_dev_info(to_dmar_domain(domain), dev);
4292+
return dmar_domain_attach_device(to_dmar_domain(domain), dev);
42924293
}
42934294

42944295
static int intel_iommu_map(struct iommu_domain *domain,

0 commit comments

Comments
 (0)