x86: fix nommu_alloc_coherent allocation with NULL device argument
commit8a53ad675f86ee003482b557da944e070d3c4859
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Mon, 8 Sep 2008 09:10:12 +0000 (8 18:10 +0900)
committerIngo Molnar <mingo@elte.hu>
Mon, 8 Sep 2008 13:50:06 +0000 (8 15:50 +0200)
treef20f205bb29fec54405a60b706d9b444f79cd8e9
parentde9f521fb72dd091aa4989fe2e004ecf4785a850
x86: fix nommu_alloc_coherent allocation with NULL device argument

We need to use __GFP_DMA for NULL device argument (fallback_dev) with
pci-nommu. It's a hack for ISA (and some old code) so we need to use
GFP_DMA.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/pci-nommu.c
include/asm-x86/dma-mapping.h