diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2008-09-09 11:49:48 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-09-10 07:57:02 -0400 |
commit | 982162602b31041b426edec6480d327743abcbcc (patch) | |
tree | 82e31a97e891171bb89ea1940341faa54159678c /include | |
parent | 8a493d37f049b631e19584d1cb84cec88cbcf8fc (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-x86/dma-mapping.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-x86/dma-mapping.h b/include/asm-x86/dma-mapping.h index f43420b8c573..f408e6dd1778 100644 --- a/include/asm-x86/dma-mapping.h +++ b/include/asm-x86/dma-mapping.h | |||
@@ -278,7 +278,7 @@ dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, | |||
278 | gfp |= GFP_DMA; | 278 | gfp |= GFP_DMA; |
279 | } | 279 | } |
280 | 280 | ||
281 | if (!dev->dma_mask) | 281 | if (!is_device_dma_capable(dev)) |
282 | return NULL; | 282 | return NULL; |
283 | 283 | ||
284 | if (!ops->alloc_coherent) | 284 | if (!ops->alloc_coherent) |