aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
authorKiran Padwal <kiran.padwal@smartplayin.com>2014-09-11 09:37:36 -0400
committerJoerg Roedel <jroedel@suse.de>2014-09-25 10:01:03 -0400
commitd943b0ffba153cd63f836647b873b445842a2f58 (patch)
tree5d4e88729efc249726e1648664c97d59dfb92d6d /drivers/iommu
parent24278a24d88ae730229417e5d3bd452d7545fbcc (diff)
iommu: Make of_device_id array const
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>
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/arm-smmu.c2
-rw-r--r--drivers/iommu/omap-iommu.c2
-rw-r--r--drivers/iommu/tegra-gart.c2
-rw-r--r--drivers/iommu/tegra-smmu.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c
index 1e0485e0aa6a..ce39b1294bfd 100644
--- a/drivers/iommu/arm-smmu.c
+++ b/drivers/iommu/arm-smmu.c
@@ -2011,7 +2011,7 @@ static int arm_smmu_device_remove(struct platform_device *pdev)
2011} 2011}
2012 2012
2013#ifdef CONFIG_OF 2013#ifdef CONFIG_OF
2014static struct of_device_id arm_smmu_of_match[] = { 2014static const struct of_device_id arm_smmu_of_match[] = {
2015 { .compatible = "arm,smmu-v1", }, 2015 { .compatible = "arm,smmu-v1", },
2016 { .compatible = "arm,smmu-v2", }, 2016 { .compatible = "arm,smmu-v2", },
2017 { .compatible = "arm,mmu-400", }, 2017 { .compatible = "arm,mmu-400", },
diff --git a/drivers/iommu/omap-iommu.c b/drivers/iommu/omap-iommu.c
index e202b0c24120..47517cf674ad 100644
--- a/drivers/iommu/omap-iommu.c
+++ b/drivers/iommu/omap-iommu.c
@@ -1006,7 +1006,7 @@ static int omap_iommu_remove(struct platform_device *pdev)
1006 return 0; 1006 return 0;
1007} 1007}
1008 1008
1009static struct of_device_id omap_iommu_of_match[] = { 1009static const struct of_device_id omap_iommu_of_match[] = {
1010 { .compatible = "ti,omap2-iommu" }, 1010 { .compatible = "ti,omap2-iommu" },
1011 { .compatible = "ti,omap4-iommu" }, 1011 { .compatible = "ti,omap4-iommu" },
1012 { .compatible = "ti,dra7-iommu" }, 1012 { .compatible = "ti,dra7-iommu" },
diff --git a/drivers/iommu/tegra-gart.c b/drivers/iommu/tegra-gart.c
index 6f44ebb84047..a6d76abf2c06 100644
--- a/drivers/iommu/tegra-gart.c
+++ b/drivers/iommu/tegra-gart.c
@@ -415,7 +415,7 @@ static const struct dev_pm_ops tegra_gart_pm_ops = {
415 .resume = tegra_gart_resume, 415 .resume = tegra_gart_resume,
416}; 416};
417 417
418static struct of_device_id tegra_gart_of_match[] = { 418static const struct of_device_id tegra_gart_of_match[] = {
419 { .compatible = "nvidia,tegra20-gart", }, 419 { .compatible = "nvidia,tegra20-gart", },
420 { }, 420 { },
421}; 421};
diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c
index 05d14e1e626f..3afdf43f732a 100644
--- a/drivers/iommu/tegra-smmu.c
+++ b/drivers/iommu/tegra-smmu.c
@@ -1259,7 +1259,7 @@ static const struct dev_pm_ops tegra_smmu_pm_ops = {
1259 .resume = tegra_smmu_resume, 1259 .resume = tegra_smmu_resume,
1260}; 1260};
1261 1261
1262static struct of_device_id tegra_smmu_of_match[] = { 1262static const struct of_device_id tegra_smmu_of_match[] = {
1263 { .compatible = "nvidia,tegra30-smmu", }, 1263 { .compatible = "nvidia,tegra30-smmu", },
1264 { }, 1264 { },
1265}; 1265};