iommu/arm-smmu: Use drvdata instead of maintaining smmu_devices list
authorWill Deacon <will.deacon@arm.com>
Tue, 11 Aug 2015 15:25:10 +0000 (16:25 +0100)
committerWill Deacon <will.deacon@arm.com>
Wed, 14 Oct 2015 12:43:50 +0000 (13:43 +0100)
commit941a802d939221028baf6d19afd6dc8652219a81
tree6dc03e6cca3dce66f4e1f0241cd30e30eedc5d5e
parent25cb62b76430a91cc6195f902e61c2cb84ade622
iommu/arm-smmu: Use drvdata instead of maintaining smmu_devices list

Rather than keep a private list of struct arm_smmu_device and searching
this whenever we need to look up the correct SMMU instance, instead use
the drvdata field in the struct device to take care of the mapping for
us.

Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu-v3.c