iommu: Make of_device_id array const
authorKiran Padwal <kiran.padwal@smartplayin.com>
Thu, 11 Sep 2014 13:37:36 +0000 (19:07 +0530)
committerJoerg Roedel <jroedel@suse.de>
Thu, 25 Sep 2014 14:01:03 +0000 (16:01 +0200)
Make of_device_id array const, because all OF functions handle it as const.

Signed-off-by: Kiran Padwal <kiran.padwal@smartplayin.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/arm-smmu.c
drivers/iommu/omap-iommu.c
drivers/iommu/tegra-gart.c
drivers/iommu/tegra-smmu.c

index 1e0485e..ce39b12 100644 (file)
@@ -2011,7 +2011,7 @@ static int arm_smmu_device_remove(struct platform_device *pdev)
 }
 
 #ifdef CONFIG_OF
-static struct of_device_id arm_smmu_of_match[] = {
+static const struct of_device_id arm_smmu_of_match[] = {
        { .compatible = "arm,smmu-v1", },
        { .compatible = "arm,smmu-v2", },
        { .compatible = "arm,mmu-400", },
Simple merge
Simple merge
Simple merge