iommu/arm-smmu: Use new devm_krealloc()
authorRobin Murphy <robin.murphy@arm.com>
Mon, 26 Oct 2020 12:00:22 +0000 (12:00 +0000)
committerWill Deacon <will@kernel.org>
Fri, 6 Nov 2020 12:38:30 +0000 (12:38 +0000)
commitaf9da91493e5ff6179c2ecbfafa05ef203b25b5f
tree81c51151b0685a79f3b7ce246571d748383d2404
parentf9081b8ff5934b8d69c748d0200e844cadd2c667
iommu/arm-smmu: Use new devm_krealloc()

The implementation-specific subclassing of struct arm_smmu_device really
wanted an appropriate version of realloc(). Now that one exists, take
full advantage of it to clarify what's actually being done here.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/355e8d70c7f47d462d85b386aa09f2b5c655f023.1603713428.git.robin.murphy@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu/arm-smmu-impl.c
drivers/iommu/arm/arm-smmu/arm-smmu-nvidia.c
drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c