summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-06-22 10:21:00 +0300
committerWill Deacon <will.deacon@arm.com>2017-06-23 19:57:57 +0300
commitebdd13c93f8e878afcdba642f48cd1bd85619e2a (patch)
treedcdac45b5955c41b3ea0e28defe7ef87140f8983 /drivers
parent84c24379a783c514e5ff7c8fc8a21cf8d64fd05f (diff)
downloadlinux-ebdd13c93f8e878afcdba642f48cd1bd85619e2a.tar.xz
iommu: arm-smmu-v3: make of_device_ids const
of_device_ids are not supposed to change at runtime. All functions working with of_device_ids provided by <linux/of.h> work with const of_device_ids. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers')
-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 6a06be7626db..0fd09745822f 100644
--- a/drivers/iommu/arm-smmu-v3.c
+++ b/drivers/iommu/arm-smmu-v3.c
@@ -2776,7 +2776,7 @@ static int arm_smmu_device_remove(struct platform_device *pdev)
return 0;
}
-static struct of_device_id arm_smmu_of_match[] = {
+static const struct of_device_id arm_smmu_of_match[] = {
{ .compatible = "arm,smmu-v3", },
{ },
};