[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220826024024.101553-1-yuancan@huawei.com>
Date: Fri, 26 Aug 2022 02:40:24 +0000
From: Yuan Can <yuancan@...wei.com>
To: <joro@...tes.org>, <will@...nel.org>, <robin.murphy@....com>,
<iommu@...ts.linux.dev>
CC: <linux-kernel@...r.kernel.org>, <yuancan@...wei.com>,
<baolu.lu@...ux.intel.com>, <haifeng.zhao@...ux.intel.com>
Subject: [PATCH] iommu: use iommu_group_ref_get to hold group reference
Replace kobject_get with iommu_group_ref_get for better
readability.
Signed-off-by: Yuan Can <yuancan@...wei.com>
---
drivers/iommu/iommu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
index 780fb7071577..8e7f30f7188c 100644
--- a/drivers/iommu/iommu.c
+++ b/drivers/iommu/iommu.c
@@ -903,7 +903,7 @@ int iommu_group_add_device(struct iommu_group *group, struct device *dev)
goto err_free_name;
}
- kobject_get(group->devices_kobj);
+ iommu_group_ref_get(group);
dev->iommu_group = group;
--
2.17.1
Powered by blists - more mailing lists