aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/shmobile-iommu.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-06-27 03:03:12 -0400
committerJoerg Roedel <jroedel@suse.de>2014-07-07 04:36:59 -0400
commitb22f6434cf48af001330e370e9d781aeb668f98c (patch)
tree1d8b3b61fef931cebc89278be309b0d75e07669a /drivers/iommu/shmobile-iommu.c
parent066f2e98d8c7f043747fb08ebaa66bad723b1121 (diff)
iommu: Constify struct iommu_ops
This structure is read-only data and should never be modified. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/shmobile-iommu.c')
-rw-r--r--drivers/iommu/shmobile-iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/shmobile-iommu.c b/drivers/iommu/shmobile-iommu.c
index 464acda0bbc4..1333e6fb3405 100644
--- a/drivers/iommu/shmobile-iommu.c
+++ b/drivers/iommu/shmobile-iommu.c
@@ -354,7 +354,7 @@ static int shmobile_iommu_add_device(struct device *dev)
354 return 0; 354 return 0;
355} 355}
356 356
357static struct iommu_ops shmobile_iommu_ops = { 357static const struct iommu_ops shmobile_iommu_ops = {
358 .domain_init = shmobile_iommu_domain_init, 358 .domain_init = shmobile_iommu_domain_init,
359 .domain_destroy = shmobile_iommu_domain_destroy, 359 .domain_destroy = shmobile_iommu_domain_destroy,
360 .attach_dev = shmobile_iommu_attach_device, 360 .attach_dev = shmobile_iommu_attach_device,