projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86d2d92
)
iommu/arm-smmu-v3: Use DEFINE_RES_MEM() to simplify code
author
Zhen Lei
<thunder.leizhen@huawei.com>
Fri, 22 Jan 2021 13:14:48 +0000
(21:14 +0800)
committer
Will Deacon
<will@kernel.org>
Fri, 22 Jan 2021 13:32:10 +0000
(13:32 +0000)
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>
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
patch
|
blob
|
history
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
bca458c
..
f04c55a
100644
(file)
--- 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);
}