diff options
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/pci-dma_32.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/kernel/pci-dma_32.c b/arch/x86/kernel/pci-dma_32.c index 0600a37ba835..debe9119b724 100644 --- a/arch/x86/kernel/pci-dma_32.c +++ b/arch/x86/kernel/pci-dma_32.c | |||
@@ -82,9 +82,6 @@ void *dma_alloc_coherent(struct device *dev, size_t size, | |||
82 | if (dma_alloc_from_coherent_mem(dev, size, dma_handle, &ret)) | 82 | if (dma_alloc_from_coherent_mem(dev, size, dma_handle, &ret)) |
83 | return ret; | 83 | return ret; |
84 | 84 | ||
85 | if (dev == NULL || (dev->coherent_dma_mask < 0xffffffff)) | ||
86 | gfp |= GFP_DMA; | ||
87 | |||
88 | if (!dev) | 85 | if (!dev) |
89 | dev = &fallback_dev; | 86 | dev = &fallback_dev; |
90 | 87 | ||