aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/asm-ppc/dma-mapping.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-ppc/dma-mapping.h b/include/asm-ppc/dma-mapping.h
index 7f0487afebbe..6f74f59938d4 100644
--- a/include/asm-ppc/dma-mapping.h
+++ b/include/asm-ppc/dma-mapping.h
@@ -117,7 +117,7 @@ dma_map_page(struct device *dev, struct page *page,
117 117
118 __dma_sync_page(page, offset, size, direction); 118 __dma_sync_page(page, offset, size, direction);
119 119
120 return (page - mem_map) * PAGE_SIZE + PCI_DRAM_OFFSET + offset; 120 return page_to_bus(page) + offset;
121} 121}
122 122
123/* We do nothing. */ 123/* We do nothing. */