Commit d943b0ff authored by Kiran Padwal's avatar Kiran Padwal Committed by Joerg Roedel

iommu: Make of_device_id array const

Make of_device_id array const, because all OF functions handle it as const.
Signed-off-by: default avatarKiran Padwal <kiran.padwal@smartplayin.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 24278a24
...@@ -2011,7 +2011,7 @@ static int arm_smmu_device_remove(struct platform_device *pdev) ...@@ -2011,7 +2011,7 @@ static int arm_smmu_device_remove(struct platform_device *pdev)
} }
#ifdef CONFIG_OF #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-v1", },
{ .compatible = "arm,smmu-v2", }, { .compatible = "arm,smmu-v2", },
{ .compatible = "arm,mmu-400", }, { .compatible = "arm,mmu-400", },
......
...@@ -1006,7 +1006,7 @@ static int omap_iommu_remove(struct platform_device *pdev) ...@@ -1006,7 +1006,7 @@ static int omap_iommu_remove(struct platform_device *pdev)
return 0; 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,omap2-iommu" },
{ .compatible = "ti,omap4-iommu" }, { .compatible = "ti,omap4-iommu" },
{ .compatible = "ti,dra7-iommu" }, { .compatible = "ti,dra7-iommu" },
......
...@@ -415,7 +415,7 @@ static const struct dev_pm_ops tegra_gart_pm_ops = { ...@@ -415,7 +415,7 @@ static const struct dev_pm_ops tegra_gart_pm_ops = {
.resume = tegra_gart_resume, .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", }, { .compatible = "nvidia,tegra20-gart", },
{ }, { },
}; };
......
...@@ -1259,7 +1259,7 @@ static const struct dev_pm_ops tegra_smmu_pm_ops = { ...@@ -1259,7 +1259,7 @@ static const struct dev_pm_ops tegra_smmu_pm_ops = {
.resume = tegra_smmu_resume, .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", }, { .compatible = "nvidia,tegra30-smmu", },
{ }, { },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment