summary refs log tree commit diff
path: root/drivers/iommu/arm-smmu-v3.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-12-24 17:14:59 +0900
committerWill Deacon <will@kernel.org>2020-01-10 09:49:27 +0000
commit8efda06f83d65c015a99d99a195df533aec0fcf9 (patch)
treeab51003be783f48ca820e3f145c56d11d61022b6 /drivers/iommu/arm-smmu-v3.c
parent322a9bbb720cd273d2967a375d1887199b361528 (diff)
downloadlinux-8efda06f83d65c015a99d99a195df533aec0fcf9.tar.gz
iommu/arm-smmu-v3: Remove useless of_match_ptr()
The CONFIG option controlling this driver, ARM_SMMU_V3,
depends on ARM64, which select's OF.

So, CONFIG_OF is always defined when building this driver.
of_match_ptr(arm_smmu_of_match) is the same as arm_smmu_of_match.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/iommu/arm-smmu-v3.c')
-rw-r--r--drivers/iommu/arm-smmu-v3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/arm-smmu-v3.c b/drivers/iommu/arm-smmu-v3.c
index 5c42c686cffe..aa7e53023585 100644
--- a/drivers/iommu/arm-smmu-v3.c
+++ b/drivers/iommu/arm-smmu-v3.c
@@ -3722,7 +3722,7 @@ MODULE_DEVICE_TABLE(of, arm_smmu_of_match);
 static struct platform_driver arm_smmu_driver = {
 	.driver	= {
 		.name			= "arm-smmu-v3",
-		.of_match_table		= of_match_ptr(arm_smmu_of_match),
+		.of_match_table		= arm_smmu_of_match,
 		.suppress_bind_attrs	= true,
 	},
 	.probe	= arm_smmu_device_probe,