Commit 02441976 authored by James Bottomley's avatar James Bottomley

Update arm implementation of DMA API to include GFP_ flags

parent 1bc3de94
......@@ -82,10 +82,8 @@ static inline int dma_is_consistent(dma_addr_t handle)
* device-viewed address.
*/
static inline void *
dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *handle)
dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *handle, int gfp)
{
int gfp = GFP_ATOMIC;
if (dev == NULL || dmadev_is_sa1111(dev) || *dev->dma_mask != 0xffffffff)
gfp |= GFP_DMA;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment