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>
This commit is contained in:
FUJITA Tomonori 2008-09-10 00:49:48 +09:00 committed by Ingo Molnar
parent 8a493d37f0
commit 982162602b

View File

@ -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)