iommu: Finish making iommu_group support mandatory
authorRobin Murphy <robin.murphy@arm.com>
Fri, 21 Jul 2017 12:12:38 +0000 (13:12 +0100)
committerJoerg Roedel <jroedel@suse.de>
Wed, 9 Aug 2017 22:03:51 +0000 (00:03 +0200)
commit05f80300dc8bcfe8566b36256d01482cae5afa02
tree7f9e9821c453f0125a8544ed529c718b7ddfbfd0
parent15f9a3104b80a83e33ec04609aa61ac7e045fa2c
iommu: Finish making iommu_group support mandatory

Now that all the drivers properly implementing the IOMMU API support
groups (I'm ignoring the etnaviv GPU MMUs which seemingly only do just
enough to convince the ARM DMA mapping ops), we can remove the FIXME
workarounds from the core code. In the process, it also seems logical to
make the .device_group callback non-optional for drivers calling
iommu_group_get_for_dev() - the current callers all implement it anyway,
and it doesn't make sense for any future callers not to either.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c