Messages in this thread Patch in this message | | | From | FUJITA Tomonori <> | Subject | [PATCH 2/2] x86: convert dma_alloc_coherent to use is_device_dma_capable | Date | Wed, 10 Sep 2008 00:49:48 +0900 |
| |
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> --- 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 9dd92b4..7b0fdd6 100644 --- a/include/asm-x86/dma-mapping.h +++ b/include/asm-x86/dma-mapping.h @@ -280,7 +280,7 @@ dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp |= GFP_DMA; } - if (!dev->dma_mask) + if (!is_device_dma_capable(dev)) return NULL; if (!ops->alloc_coherent) -- 1.5.4.2
| |