diff options
author | Zhen Lei <thunder.leizhen@huawei.com> | 2021-01-22 21:14:48 +0800 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2021-01-22 13:32:10 +0000 |
commit | 932bc8c7d742c30ce61f2add6cd1340795b0051c (patch) | |
tree | 596c5e9397d0faf64e00038536617e6cc6276e92 /drivers/iommu/arm | |
parent | 86d2d9214880c1879cb0ff466cce2fcd9c853e44 (diff) |
iommu/arm-smmu-v3: Use DEFINE_RES_MEM() to simplify code
No functional change.
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20210122131448.1167-1-thunder.leizhen@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/iommu/arm')
-rw-r--r-- | drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c index bca458c00e48..f04c55a7503c 100644 --- a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c +++ b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c @@ -3479,11 +3479,7 @@ err_reset_pci_ops: __maybe_unused; static void __iomem *arm_smmu_ioremap(struct device *dev, resource_size_t start, resource_size_t size) { - struct resource res = { - .flags = IORESOURCE_MEM, - .start = start, - .end = start + size - 1, - }; + struct resource res = DEFINE_RES_MEM(start, size); return devm_ioremap_resource(dev, &res); } |