Skip to content

Commit

Permalink
iommu: Make of_device_id array const
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kiran Padwal authored and Joerg Roedel committed Sep 25, 2014
1 parent 24278a2 commit d943b0f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/iommu/arm-smmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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", },
Expand Down
2 changes: 1 addition & 1 deletion drivers/iommu/omap-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down
2 changes: 1 addition & 1 deletion drivers/iommu/tegra-gart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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", },
{ },
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/iommu/tegra-smmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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", },
{ },
};
Expand Down

0 comments on commit d943b0f

Please sign in to comment.