diff options
author | Joerg Roedel <jroedel@suse.de> | 2017-02-01 17:23:22 +0100 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2017-02-10 13:44:57 +0100 |
commit | e3d10af1128b6bc394f21656ff13753130f3c107 (patch) | |
tree | 4b7000852fd2fa2ad644db13771e1d187c78b4dc /drivers/iommu/intel-iommu.c | |
parent | 39ab9555c24110671f8dc671311a26e5c985b592 (diff) | |
download | op-kernel-dev-e3d10af1128b6bc394f21656ff13753130f3c107.zip op-kernel-dev-e3d10af1128b6bc394f21656ff13753130f3c107.tar.gz |
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>
Diffstat (limited to 'drivers/iommu/intel-iommu.c')
-rw-r--r-- | drivers/iommu/intel-iommu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index 316730c..cbe7c49 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c @@ -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 |