[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191224081500.18628-1-yamada.masahiro@socionext.com>
Date: Tue, 24 Dec 2019 17:14:59 +0900
From: Masahiro Yamada <yamada.masahiro@...ionext.com>
To: Will Deacon <will@...nel.org>, Robin Murphy <robin.murphy@....com>,
linux-arm-kernel@...ts.infradead.org,
Joerg Roedel <joro@...tes.org>,
iommu@...ts.linux-foundation.org
Cc: Masahiro Yamada <yamada.masahiro@...ionext.com>,
linux-kernel@...r.kernel.org
Subject: [PATCH 1/2] 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@...ionext.com>
---
drivers/iommu/arm-smmu-v3.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iommu/arm-smmu-v3.c b/drivers/iommu/arm-smmu-v3.c
index effe72eb89e7..d9e0d9c19b4f 100644
--- a/drivers/iommu/arm-smmu-v3.c
+++ b/drivers/iommu/arm-smmu-v3.c
@@ -3698,7 +3698,7 @@ static const struct of_device_id 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,
--
2.17.1
Powered by blists - more mailing lists