iommu/tegra: smmu: Use helper function to check for valid register offset
authorJoerg Roedel <joro@8bytes.org>
Mon, 4 Feb 2013 19:40:58 +0000 (20:40 +0100)
committerJoerg Roedel <joro@8bytes.org>
Tue, 5 Feb 2013 13:18:24 +0000 (14:18 +0100)
Do not repeat the checking loop in the read and write
functions. Use a single helper function for that check and
call it in both accessors.

Signed-off-by: Joerg Roedel <joro@8bytes.org>

No differences found