diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2009-08-09 22:53:14 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-08-10 03:34:59 -0400 |
commit | 595cc8560783ea31ed1208dc1f97282a2a5606b7 (patch) | |
tree | bb111195d4639511bb8abc6110e9037576d304d3 /arch/sparc/kernel/pci_sun4v.c | |
parent | 02f7a18935eef0e56d9180fc3c35da6aad1ff3bb (diff) |
sparc: Remove no-op dma_4v_sync_single_for_cpu and dma_4v_sync_sg_for_cpu
Now sparc uses include/asm-generic/dma-mapping-common.h.
pci_sun4v.c doesn't need to have no-op
dma_4v_sync_single_for_cpu and dma_4v_sync_sg_for_cpu
(dma-mapping-common.h does nothing if sync_{single|sg}_for_cpu
hook is not defined). So we can remove them safely.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Tested-by: Robert Reif <reif@earthlink.net>
Acked-by: David S. Miller <davem@davemloft.net>
Cc: tony.luck@intel.com
Cc: fenghua.yu@intel.com
LKML-Reference: <1249872797-1314-6-git-send-email-fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/sparc/kernel/pci_sun4v.c')
-rw-r--r-- | arch/sparc/kernel/pci_sun4v.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/sparc/kernel/pci_sun4v.c b/arch/sparc/kernel/pci_sun4v.c index ee800f927929..23c33ff9c31e 100644 --- a/arch/sparc/kernel/pci_sun4v.c +++ b/arch/sparc/kernel/pci_sun4v.c | |||
@@ -525,20 +525,6 @@ static void dma_4v_unmap_sg(struct device *dev, struct scatterlist *sglist, | |||
525 | spin_unlock_irqrestore(&iommu->lock, flags); | 525 | spin_unlock_irqrestore(&iommu->lock, flags); |
526 | } | 526 | } |
527 | 527 | ||
528 | static void dma_4v_sync_single_for_cpu(struct device *dev, | ||
529 | dma_addr_t bus_addr, size_t sz, | ||
530 | enum dma_data_direction direction) | ||
531 | { | ||
532 | /* Nothing to do... */ | ||
533 | } | ||
534 | |||
535 | static void dma_4v_sync_sg_for_cpu(struct device *dev, | ||
536 | struct scatterlist *sglist, int nelems, | ||
537 | enum dma_data_direction direction) | ||
538 | { | ||
539 | /* Nothing to do... */ | ||
540 | } | ||
541 | |||
542 | static struct dma_map_ops sun4v_dma_ops = { | 528 | static struct dma_map_ops sun4v_dma_ops = { |
543 | .alloc_coherent = dma_4v_alloc_coherent, | 529 | .alloc_coherent = dma_4v_alloc_coherent, |
544 | .free_coherent = dma_4v_free_coherent, | 530 | .free_coherent = dma_4v_free_coherent, |
@@ -546,8 +532,6 @@ static struct dma_map_ops sun4v_dma_ops = { | |||
546 | .unmap_page = dma_4v_unmap_page, | 532 | .unmap_page = dma_4v_unmap_page, |
547 | .map_sg = dma_4v_map_sg, | 533 | .map_sg = dma_4v_map_sg, |
548 | .unmap_sg = dma_4v_unmap_sg, | 534 | .unmap_sg = dma_4v_unmap_sg, |
549 | .sync_single_for_cpu = dma_4v_sync_single_for_cpu, | ||
550 | .sync_sg_for_cpu = dma_4v_sync_sg_for_cpu, | ||
551 | }; | 535 | }; |
552 | 536 | ||
553 | static void __devinit pci_sun4v_scan_bus(struct pci_pbm_info *pbm, | 537 | static void __devinit pci_sun4v_scan_bus(struct pci_pbm_info *pbm, |