From: Arvind Yadav Date: Thu, 22 Jun 2017 07:21:00 +0000 (+0530) Subject: iommu: arm-smmu-v3: make of_device_ids const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ebdd13c93f8e878afcdba642f48cd1bd85619e2a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 work with const of_device_ids. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Signed-off-by: Will Deacon --- 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", }, { }, };