Skip to content

Commit

Permalink
iommu: arm-smmu-v3: make of_device_ids const
Browse files Browse the repository at this point in the history
of_device_ids are not supposed to change at runtime. All functions
working with of_device_ids provided by <linux/of.h> work with const
of_device_ids. So mark the non-const structs as const.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
  • Loading branch information
Arvind Yadav authored and Will Deacon committed Jun 23, 2017
1 parent 84c2437 commit ebdd13c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iommu/arm-smmu-v3.c
Original file line number Diff line number Diff line change
Expand Up @@ -2776,7 +2776,7 @@ static int arm_smmu_device_remove(struct platform_device *pdev)
return 0;
}

static struct of_device_id arm_smmu_of_match[] = {
static const struct of_device_id arm_smmu_of_match[] = {
{ .compatible = "arm,smmu-v3", },
{ },
};
Expand Down

0 comments on commit ebdd13c

Please sign in to comment.