Skip to content

Commit

Permalink
powerpc: remove unused swiotlb_phys_to_bus() and swiotlb_bus_to_phys()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
FUJITA Tomonori committed Jul 28, 2009
1 parent 862d196 commit 8ab7ff4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions arch/powerpc/kernel/dma-swiotlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 8ab7ff4

Please sign in to comment.