diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sparc64/kernel/pci.c | 4 | ||||
-rw-r--r-- | arch/sparc64/kernel/pci_iommu.c | 2 | ||||
-rw-r--r-- | arch/sparc64/kernel/pci_sun4v.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/arch/sparc64/kernel/pci.c b/arch/sparc64/kernel/pci.c index a7809a00324c..914a216da339 100644 --- a/arch/sparc64/kernel/pci.c +++ b/arch/sparc64/kernel/pci.c | |||
@@ -282,10 +282,10 @@ int __init pcic_present(void) | |||
282 | return pci_controller_scan(pci_is_controller); | 282 | return pci_controller_scan(pci_is_controller); |
283 | } | 283 | } |
284 | 284 | ||
285 | struct pci_iommu_ops *pci_iommu_ops; | 285 | const struct pci_iommu_ops *pci_iommu_ops; |
286 | EXPORT_SYMBOL(pci_iommu_ops); | 286 | EXPORT_SYMBOL(pci_iommu_ops); |
287 | 287 | ||
288 | extern struct pci_iommu_ops pci_sun4u_iommu_ops, | 288 | extern const struct pci_iommu_ops pci_sun4u_iommu_ops, |
289 | pci_sun4v_iommu_ops; | 289 | pci_sun4v_iommu_ops; |
290 | 290 | ||
291 | /* Find each controller in the system, attach and initialize | 291 | /* Find each controller in the system, attach and initialize |
diff --git a/arch/sparc64/kernel/pci_iommu.c b/arch/sparc64/kernel/pci_iommu.c index 554daabb381e..aefdcc51045b 100644 --- a/arch/sparc64/kernel/pci_iommu.c +++ b/arch/sparc64/kernel/pci_iommu.c | |||
@@ -759,7 +759,7 @@ static void pci_4u_dma_sync_sg_for_cpu(struct pci_dev *pdev, struct scatterlist | |||
759 | spin_unlock_irqrestore(&iommu->lock, flags); | 759 | spin_unlock_irqrestore(&iommu->lock, flags); |
760 | } | 760 | } |
761 | 761 | ||
762 | struct pci_iommu_ops pci_sun4u_iommu_ops = { | 762 | const struct pci_iommu_ops pci_sun4u_iommu_ops = { |
763 | .alloc_consistent = pci_4u_alloc_consistent, | 763 | .alloc_consistent = pci_4u_alloc_consistent, |
764 | .free_consistent = pci_4u_free_consistent, | 764 | .free_consistent = pci_4u_free_consistent, |
765 | .map_single = pci_4u_map_single, | 765 | .map_single = pci_4u_map_single, |
diff --git a/arch/sparc64/kernel/pci_sun4v.c b/arch/sparc64/kernel/pci_sun4v.c index c6feae6e9690..a8c12c1e8039 100644 --- a/arch/sparc64/kernel/pci_sun4v.c +++ b/arch/sparc64/kernel/pci_sun4v.c | |||
@@ -583,7 +583,7 @@ static void pci_4v_dma_sync_sg_for_cpu(struct pci_dev *pdev, struct scatterlist | |||
583 | /* Nothing to do... */ | 583 | /* Nothing to do... */ |
584 | } | 584 | } |
585 | 585 | ||
586 | struct pci_iommu_ops pci_sun4v_iommu_ops = { | 586 | const struct pci_iommu_ops pci_sun4v_iommu_ops = { |
587 | .alloc_consistent = pci_4v_alloc_consistent, | 587 | .alloc_consistent = pci_4v_alloc_consistent, |
588 | .free_consistent = pci_4v_free_consistent, | 588 | .free_consistent = pci_4v_free_consistent, |
589 | .map_single = pci_4v_map_single, | 589 | .map_single = pci_4v_map_single, |