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>
This commit is contained in:
Joerg Roedel
2017-02-01 17:23:22 +01:00
parent 39ab9555c2
commit e3d10af112
4 changed files with 14 additions and 14 deletions

View File

@@ -472,7 +472,7 @@ static int iommu_init_device(struct device *dev)
dev->archdata.iommu = dev_data;
iommu_device_link(&iommu->iommu.dev, dev);
iommu_device_link(&iommu->iommu, dev);
return 0;
}
@@ -514,7 +514,7 @@ static void iommu_uninit_device(struct device *dev)
if (dev_data->domain)
detach_device(dev);
iommu_device_unlink(&iommu->iommu.dev, dev);
iommu_device_unlink(&iommu->iommu, dev);
iommu_group_remove_device(dev);