浏览代码

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>
FUJITA Tomonori 16 年之前
父节点
当前提交
982162602b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/asm-x86/dma-mapping.h

+ 1 - 1
include/asm-x86/dma-mapping.h

@@ -278,7 +278,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)