iommu/s390: Use iommu_group_get_for_dev() in s390_iommu_add_device()
authorJoerg Roedel <jroedel@suse.de>
Thu, 15 Jun 2017 13:11:51 +0000 (15:11 +0200)
committerJoerg Roedel <jroedel@suse.de>
Wed, 28 Jun 2017 10:29:00 +0000 (12:29 +0200)
commit0929deca40bbdd7e821aada2906ac67882cfbf28
tree6f35ebff4c6f89452110ddd667b9908caf60da14
parentc0bc126f97fb929b3ae02c1c62322645d70eb408
iommu/s390: Use iommu_group_get_for_dev() in s390_iommu_add_device()

The iommu_group_get_for_dev() function also attaches the
device to its group, so this code doesn't need to be in the
iommu driver.

Further by using this function the driver can make use of
default domains in the future.

Reviewed-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/s390-iommu.c