iommu/tegra-smmu: Factor out tegra_smmu_set_pde()
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 27 Jul 2015 12:30:12 +0000 (13:30 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 13 Aug 2015 14:06:44 +0000 (16:06 +0200)
commit4080e99b8341f81c4ed1e17d8ef44d171c473a1b
treee9d732a73fc5b8c9a0cd23d0ed80d8561e3bf223
parent7ffc6f066eb73b07a0ef7c94d05107aef271ac21
iommu/tegra-smmu: Factor out tegra_smmu_set_pde()

This code is used both when creating a new page directory entry and when
tearing it down, with only the PDE value changing between both cases.

Factor the code out so that it can be reused.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
[treding@nvidia.com: make commit message more accurate]
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/iommu/tegra-smmu.c