Skip to content

Commit

Permalink
[PATCH] ppc32: fix dma_map_page() to use page_to_bus()
Browse files Browse the repository at this point in the history
The following trivial patch changes dma_map_page() to use page_to_bus()
instead of open-coding it (incorrectly in some cases).

Signed-off-by: Eugene Surovegin <ebs@ebshome.net>
Signed-off-by: Matt Porter <mporter@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Matt Porter authored and Linus Torvalds committed Jul 27, 2005
1 parent 15ce298 commit 9f6a3d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-ppc/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ dma_map_page(struct device *dev, struct page *page,

__dma_sync_page(page, offset, size, direction);

return (page - mem_map) * PAGE_SIZE + PCI_DRAM_OFFSET + offset;
return page_to_bus(page) + offset;
}

/* We do nothing. */
Expand Down

0 comments on commit 9f6a3d0

Please sign in to comment.