]> git.baikalelectronics.ru Git - kernel.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)
commit745a13b19f69c56221c82f1c7e618451f310ccb1
tree7452d4617f6aeef6e271c6b722bb96a2694eeffe
parenta75d9c19069ca47ef32c3e720468e19c50ab6921
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