]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/exynos: Use generic group callback
authorRobin Murphy <robin.murphy@arm.com>
Wed, 24 Jan 2018 14:22:09 +0000 (14:22 +0000)
committerJoerg Roedel <jroedel@suse.de>
Tue, 13 Feb 2018 13:33:53 +0000 (14:33 +0100)
commitf0a36442d96a12e68e8641e8aca0c22d3dff4674
tree693d9aa76250ea99b4180ca97d21a0b0174592a5
parentbcac507057f6668c45308343ba41f4c91a086136
iommu/exynos: Use generic group callback

Since iommu_group_get_for_dev() already tries iommu_group_get() and will
not call ops->device_group if the group is already non-NULL, the check
in get_device_iommu_group() is always redundant and it reduces to a
duplicate of the generic version; let's just use that one instead.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/exynos-iommu.c