iommu: Limit iommu_attach/detach_device to devices with their own group
authorJoerg Roedel <jroedel@suse.de>
Thu, 28 May 2015 16:41:30 +0000 (18:41 +0200)
committerJoerg Roedel <jroedel@suse.de>
Tue, 9 Jun 2015 06:55:21 +0000 (08:55 +0200)
commit426a273834eae65abcfc7132a21a85b3151e0bce
tree4a5800e1b7ed228ed6e1a846f366eb8ac2a4f812
parent53723dc59ff3ab504c739000b287ded49aeb2019
iommu: Limit iommu_attach/detach_device to devices with their own group

This patch changes the behavior of the iommu_attach_device
and iommu_detach_device functions. With this change these
functions only work on devices that have their own group.
For all other devices the iommu_group_attach/detach
functions must be used.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c