diff options
Diffstat (limited to 'include/asm-x86/dma-mapping.h')
-rw-r--r-- | include/asm-x86/dma-mapping.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-x86/dma-mapping.h b/include/asm-x86/dma-mapping.h index 088c56814aa3..ad8b49032d18 100644 --- a/include/asm-x86/dma-mapping.h +++ b/include/asm-x86/dma-mapping.h | |||
@@ -246,6 +246,8 @@ dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, | |||
246 | struct dma_mapping_ops *ops = get_dma_ops(dev); | 246 | struct dma_mapping_ops *ops = get_dma_ops(dev); |
247 | void *memory; | 247 | void *memory; |
248 | 248 | ||
249 | gfp &= ~(__GFP_DMA | __GFP_HIGHMEM | __GFP_DMA32); | ||
250 | |||
249 | if (dma_alloc_from_coherent(dev, size, dma_handle, &memory)) | 251 | if (dma_alloc_from_coherent(dev, size, dma_handle, &memory)) |
250 | return memory; | 252 | return memory; |
251 | 253 | ||