aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/asm-x86/dma-mapping.h2
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,
gfp |= GFP_DMA;
}
- if (!dev->dma_mask)
+ if (!is_device_dma_capable(dev))
return NULL;
if (!ops->alloc_coherent)