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)
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

Simple merge