iommu: Make iommu_device_link/unlink take a struct iommu_device
This makes the interface more consistent with iommu_device_sysfs_add/remove. Signed-off-by: Joerg Roedel <jroedel@suse.de>
这个提交包含在:
@@ -5162,7 +5162,7 @@ static int intel_iommu_add_device(struct device *dev)
|
||||
if (!iommu)
|
||||
return -ENODEV;
|
||||
|
||||
iommu_device_link(&iommu->iommu.dev, dev);
|
||||
iommu_device_link(&iommu->iommu, dev);
|
||||
|
||||
group = iommu_group_get_for_dev(dev);
|
||||
|
||||
@@ -5184,7 +5184,7 @@ static void intel_iommu_remove_device(struct device *dev)
|
||||
|
||||
iommu_group_remove_device(dev);
|
||||
|
||||
iommu_device_unlink(&iommu->iommu.dev, dev);
|
||||
iommu_device_unlink(&iommu->iommu, dev);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_INTEL_IOMMU_SVM
|
||||
|
在新工单中引用
屏蔽一个用户