sparc: use dma_map_page instead of dma_map_single
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Thu, 14 May 2009 16:23:10 +0000 (16:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Jun 2009 11:56:45 +0000 (04:56 -0700)
commit797a75686528e9f6f9bfee2a719a00b47868c999
tree98f5aadddd6b373e69719b95bb2fd68fbe1fe29f
parent2e8fcfe2e51b2ee0fef3313e3c9ec25b9d6ed255
sparc: use dma_map_page instead of dma_map_single

This patch converts dma_map_single and dma_unmap_single to use
map_page and unmap_page respectively and removes unnecessary
map_single and unmap_single. map_page can be used to implement
map_single but the opposite is impossible. Having only dma_map_page in
struct dma_ops is enough.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Tested-by: Robert Reif <reif@earthlink.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/dma-mapping_64.h
arch/sparc/kernel/iommu.c
arch/sparc/kernel/pci_sun4v.c