sparc32: Fix page_to_phys().
authorDavid S. Miller <davem@davemloft.net>
Thu, 14 Jan 2010 11:14:53 +0000 (03:14 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Jan 2010 11:14:53 +0000 (03:14 -0800)
commit8654164f54bd02787ae91db8526dcae8e7e34eeb
tree67d523ea1576aa6f9d475415fbb4b766ff6dc94b
parentaf2e7cc27016eadcf3840325aaef59afece3b8f2
sparc32: Fix page_to_phys().

It doesn't account for phys_base like it should, fix by using
page_to_pfn().

While we're here, make virt_to_page() use pfn_to_page() as well, so we
consistently use the asm/memory-model.h abstractions instead of
open-coding memory model assumptions.

Tested-by: Kristoffer Glembo <kristoffer@gaisler.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/io_32.h
arch/sparc/include/asm/page_32.h