]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
x86: remove unused swiotlb_phys_to_bus() and swiotlb_bus_to_phys()
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Fri, 10 Jul 2009 01:05:04 +0000 (10:05 +0900)
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Tue, 28 Jul 2009 05:19:20 +0000 (14:19 +0900)
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>
arch/x86/kernel/pci-swiotlb.c

index 165bd7f93bb12691091a32a0f346fd31edb74c15..e8a35016115f92369663ef7c695cd5c41f45eec7 100644 (file)
 
 int swiotlb __read_mostly;
 
-dma_addr_t swiotlb_phys_to_bus(struct device *hwdev, phys_addr_t paddr)
-{
-       return paddr;
-}
-
-phys_addr_t swiotlb_bus_to_phys(struct device *hwdev, dma_addr_t baddr)
-{
-       return baddr;
-}
-
 static void *x86_swiotlb_alloc_coherent(struct device *hwdev, size_t size,
                                        dma_addr_t *dma_handle, gfp_t flags)
 {