提交 8efda06f 编写于 作者: M Masahiro Yamada 提交者: Will Deacon

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: NMasahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: NWill Deacon <will@kernel.org>
上级 322a9bbb
...@@ -3722,7 +3722,7 @@ MODULE_DEVICE_TABLE(of, arm_smmu_of_match); ...@@ -3722,7 +3722,7 @@ MODULE_DEVICE_TABLE(of, arm_smmu_of_match);
static struct platform_driver arm_smmu_driver = { static struct platform_driver arm_smmu_driver = {
.driver = { .driver = {
.name = "arm-smmu-v3", .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, .suppress_bind_attrs = true,
}, },
.probe = arm_smmu_device_probe, .probe = arm_smmu_device_probe,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册