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 1e0485e0aa6adf1cfb28b9ceb72d56bcf01ce63a..ce39b1294bfdb14c93552eec11767731248e4d0a 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", },
index e202b0c2412081ea21d2650a3a21778f933def44..47517cf674adfa9ef15477c74fd1d6f69702eac6 100644 (file)
@@ -1006,7 +1006,7 @@ static int omap_iommu_remove(struct platform_device *pdev)
        return 0;
 }
 
-static struct of_device_id omap_iommu_of_match[] = {
+static const struct of_device_id omap_iommu_of_match[] = {
        { .compatible = "ti,omap2-iommu" },
        { .compatible = "ti,omap4-iommu" },
        { .compatible = "ti,dra7-iommu" },
index 6f44ebb84047005aed5fef7a549fe2bb8a1717a4..a6d76abf2c06e11096470145aedfaf614ddfaf30 100644 (file)
@@ -415,7 +415,7 @@ static const struct dev_pm_ops tegra_gart_pm_ops = {
        .resume         = tegra_gart_resume,
 };
 
-static struct of_device_id tegra_gart_of_match[] = {
+static const struct of_device_id tegra_gart_of_match[] = {
        { .compatible = "nvidia,tegra20-gart", },
        { },
 };
index 05d14e1e626f42aa850e1d5cde5ebb0566eab80b..3afdf43f732ac0df57e0893d37a71f1c2ca6d201 100644 (file)
@@ -1259,7 +1259,7 @@ static const struct dev_pm_ops tegra_smmu_pm_ops = {
        .resume         = tegra_smmu_resume,
 };
 
-static struct of_device_id tegra_smmu_of_match[] = {
+static const struct of_device_id tegra_smmu_of_match[] = {
        { .compatible = "nvidia,tegra30-smmu", },
        { },
 };