x86: dma-ops on highmem fix
[deliverable/linux.git] / arch / x86 / kernel / pci-nommu_64.c
index ab08e1832228a74869bc6e7aeb517b0e29e8b044..6e330769d0174c5a0c3014ed2bac7f25fe70f4cc 100644 (file)
@@ -26,10 +26,10 @@ check_addr(char *name, struct device *hwdev, dma_addr_t bus, size_t size)
 }
 
 static dma_addr_t
-nommu_map_single(struct device *hwdev, void *ptr, size_t size,
+nommu_map_single(struct device *hwdev, phys_addr_t paddr, size_t size,
               int direction)
 {
-       dma_addr_t bus = virt_to_bus(ptr);
+       dma_addr_t bus = paddr;
        if (!check_addr("map_single", hwdev, bus, size))
                                return bad_dma_address;
        return bus;
This page took 0.039176 seconds and 5 git commands to generate.