From: Alexey Kardashevskiy Date: Fri, 5 Jun 2015 06:34:56 +0000 (+1000) Subject: powerpc/iommu: Put IOMMU group explicitly X-Git-Tag: omap-for-v4.3/legacy-v2-signed~168^2~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac9a58891a965216e9cb549a0a2012b97e3abcce;p=pandora-kernel.git powerpc/iommu: Put IOMMU group explicitly So far an iommu_table lifetime was the same as PE. Dynamic DMA windows will change this and iommu_free_table() will not always require the group to be released. This moves iommu_group_put() out of iommu_free_table(). This adds a iommu_pseries_free_table() helper which does iommu_group_put() and iommu_free_table(). Later it will be changed to receive a table_group and we will have to change less lines then. This should cause no behavioural change. Signed-off-by: Alexey Kardashevskiy Reviewed-by: Gavin Shan Reviewed-by: David Gibson Signed-off-by: Michael Ellerman --- Reading git-diff-tree failed