1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00

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>
This commit is contained in:
Zhen Lei 2021-01-22 21:14:48 +08:00 committed by Will Deacon
parent 86d2d92148
commit 932bc8c7d7

View file

@ -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);
}