[MIPS] Always use virt_to_phys() when translating kernel addresses
commit680f0faa1731b7f32dc8e2e73e89b460186fdac9
authorFranck Bui-Huu <fbuihuu@gmail.com>
Mon, 19 Mar 2007 16:36:42 +0000 (19 17:36 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 19 Mar 2007 22:26:23 +0000 (19 22:26 +0000)
treee310eec1cd4c5347787f60a58939e8484123bef8
parent8ad347609a54f076acaab3b3e57f36f7344fb4f8
[MIPS] Always use virt_to_phys() when translating kernel addresses

This patch fixes two places where we used plain 'x - PAGE_OFFSET' to
achieve virtual to physical address convertions. This type of convertion
is no more allowed since commit 6f284a2ce7b8bc49cb8455b1763357897a899abb.

Reported-by: Maxime Bizon <mbizon@freebox.fr>
Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
[Build fixes for machines that don't use the generic dma-coherence.h]

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/dma-default.c
include/asm-mips/pgtable-64.h
include/asm-mips/pgtable.h