]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
x86: remove virt_to_bus in pci-dma_64.c
authorGlauber Costa <gcosta@redhat.com>
Tue, 8 Apr 2008 16:21:01 +0000 (13:21 -0300)
committerIngo Molnar <mingo@elte.hu>
Sat, 19 Apr 2008 17:19:58 +0000 (19:19 +0200)
commit71848d687e2a477cb7c68a854d8fdeaa5dff0ffc
tree7452d4617f6aeef6e271c6b722bb96a2694eeffe
parent2e33e361188617628e47b4bc47e87e84feaf556f
x86: remove virt_to_bus in pci-dma_64.c

virt_to_bus() is deprecated according to the docs, and moreover,
won't return the right thing in i386 if we're dealing with high memory mappings.
So we make our allocation function return a page, and then use page_address() (for
virtual addr) and page_to_phys() (for physical addr) instead.

Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/pci-dma_64.c