commit | 982162602b31041b426edec6480d327743abcbcc | [log] [tgz] |
---|---|---|
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | Wed Sep 10 00:49:48 2008 +0900 |
committer | Ingo Molnar <mingo@elte.hu> | Wed Sep 10 13:57:02 2008 +0200 |
tree | 82e31a97e891171bb89ea1940341faa54159678c | |
parent | 8a493d37f049b631e19584d1cb84cec88cbcf8fc [diff] [blame] |
x86: convert dma_alloc_coherent to use is_device_dma_capable Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Signed-off-by: Ingo Molnar <mingo@elte.hu>
diff --git a/include/asm-x86/dma-mapping.h b/include/asm-x86/dma-mapping.h index f43420b..f408e6d 100644 --- a/include/asm-x86/dma-mapping.h +++ b/include/asm-x86/dma-mapping.h
@@ -278,7 +278,7 @@ gfp |= GFP_DMA; } - if (!dev->dma_mask) + if (!is_device_dma_capable(dev)) return NULL; if (!ops->alloc_coherent)