summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/dma-swiotlb.c
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2009-07-10 10:05:03 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2009-07-28 14:19:20 +0900
commit8ab7ff42c9dd9231706a4ba7120eed22ff52a93b (patch)
tree35a66b14f7fe961d7a38b06498522106e932c07e /arch/powerpc/kernel/dma-swiotlb.c
parent862d196b27bd30a5ab8109d5cdb37980d81b1fe9 (diff)
downloadlinux-8ab7ff42c9dd9231706a4ba7120eed22ff52a93b.tar.gz
linux-8ab7ff42c9dd9231706a4ba7120eed22ff52a93b.tar.bz2
linux-8ab7ff42c9dd9231706a4ba7120eed22ff52a93b.zip
powerpc: remove unused swiotlb_phys_to_bus() and swiotlb_bus_to_phys()
phys_to_dma() and dma_to_phys() are used instead of swiotlb_phys_to_bus() and swiotlb_bus_to_phys(). Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Acked-by: Becky Bruce <beckyb@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/dma-swiotlb.c')
-rw-r--r--arch/powerpc/kernel/dma-swiotlb.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/powerpc/kernel/dma-swiotlb.c b/arch/powerpc/kernel/dma-swiotlb.c
index a3bbe02cda98..e8a57de85bcf 100644
--- a/arch/powerpc/kernel/dma-swiotlb.c
+++ b/arch/powerpc/kernel/dma-swiotlb.c
@@ -24,17 +24,6 @@
int swiotlb __read_mostly;
unsigned int ppc_swiotlb_enable;
-dma_addr_t swiotlb_phys_to_bus(struct device *hwdev, phys_addr_t paddr)
-{
- return paddr + get_dma_direct_offset(hwdev);
-}
-
-phys_addr_t swiotlb_bus_to_phys(struct device *hwdev, dma_addr_t baddr)
-
-{
- return baddr - get_dma_direct_offset(hwdev);
-}
-
/*
* Determine if an address is reachable by a pci device, or if we must bounce.
*/