summaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
authorArvind Yadav2017-06-22 09:21:00 +0200
committerWill Deacon2017-06-23 18:57:57 +0200
commitebdd13c93f8e878afcdba642f48cd1bd85619e2a (patch)
treedcdac45b5955c41b3ea0e28defe7ef87140f8983 /drivers/iommu
parentiommu/arm-smmu: Plumb in new ACPI identifiers (diff)
downloadkernel-qcow2-linux-ebdd13c93f8e878afcdba642f48cd1bd85619e2a.tar.gz
kernel-qcow2-linux-ebdd13c93f8e878afcdba642f48cd1bd85619e2a.tar.xz
kernel-qcow2-linux-ebdd13c93f8e878afcdba642f48cd1bd85619e2a.zip
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/iommu')
-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", },
{ },
};