x86: move pci-nommu's dma_mask check to common code
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Mon, 8 Sep 2008 09:10:11 +0000 (18:10 +0900)
committerIngo Molnar <mingo@elte.hu>
Mon, 8 Sep 2008 13:50:06 +0000 (15:50 +0200)
commitde9f521fb72dd091aa4989fe2e004ecf4785a850
tree7e19aa05aec7f859ac2ca036da3cad19a055806e
parent3a80b6aa271eb08a3da1a04b5cbdcdc19d4a5ae0
x86: move pci-nommu's dma_mask check to common code

The check to see if dev->dma_mask is NULL in pci-nommu is more
appropriate for dma_alloc_coherent().

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