提交 98216260 编写于 作者: F FUJITA Tomonori 提交者: Ingo Molnar

x86: convert dma_alloc_coherent to use is_device_dma_capable

Signed-off-by: NFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 8a493d37
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册