diff options
author | Thierry Reding <treding@nvidia.com> | 2014-06-27 03:03:12 -0400 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2014-07-07 04:36:59 -0400 |
commit | b22f6434cf48af001330e370e9d781aeb668f98c (patch) | |
tree | 1d8b3b61fef931cebc89278be309b0d75e07669a /drivers/iommu/amd_iommu.c | |
parent | 066f2e98d8c7f043747fb08ebaa66bad723b1121 (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/amd_iommu.c')
-rw-r--r-- | drivers/iommu/amd_iommu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index c8f87a6c9b90..18405314168b 100644 --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c | |||
@@ -80,7 +80,7 @@ LIST_HEAD(hpet_map); | |||
80 | */ | 80 | */ |
81 | static struct protection_domain *pt_domain; | 81 | static struct protection_domain *pt_domain; |
82 | 82 | ||
83 | static struct iommu_ops amd_iommu_ops; | 83 | static const struct iommu_ops amd_iommu_ops; |
84 | 84 | ||
85 | static ATOMIC_NOTIFIER_HEAD(ppr_notifier); | 85 | static ATOMIC_NOTIFIER_HEAD(ppr_notifier); |
86 | int amd_iommu_max_glx_val = -1; | 86 | int amd_iommu_max_glx_val = -1; |
@@ -3395,7 +3395,7 @@ static int amd_iommu_domain_has_cap(struct iommu_domain *domain, | |||
3395 | return 0; | 3395 | return 0; |
3396 | } | 3396 | } |
3397 | 3397 | ||
3398 | static struct iommu_ops amd_iommu_ops = { | 3398 | static const struct iommu_ops amd_iommu_ops = { |
3399 | .domain_init = amd_iommu_domain_init, | 3399 | .domain_init = amd_iommu_domain_init, |
3400 | .domain_destroy = amd_iommu_domain_destroy, | 3400 | .domain_destroy = amd_iommu_domain_destroy, |
3401 | .attach_dev = amd_iommu_attach_device, | 3401 | .attach_dev = amd_iommu_attach_device, |