ASoC: Intel: Add GFP_KERNEL flag to firmware DMA buffer.
authorLiam Girdwood <liam.r.girdwood@linux.intel.com>
Tue, 18 Feb 2014 10:41:50 +0000 (10:41 +0000)
committerMark Brown <broonie@linaro.org>
Wed, 19 Feb 2014 04:25:52 +0000 (13:25 +0900)
Add GFP_KERNEL when allocating firmware DMA buffer.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/intel/sst-firmware.c

index b6f9b5ecb66a08def3dc82b2cf7d744d9efbc9dc..31cd15430e9ad25394c59293b1a357647e5908fc 100644 (file)
@@ -65,7 +65,7 @@ struct sst_fw *sst_fw_new(struct sst_dsp *dsp,
 
        /* allocate DMA buffer to store FW data */
        sst_fw->dma_buf = dma_alloc_coherent(dsp->dev, sst_fw->size,
-                               &sst_fw->dmable_fw_paddr, GFP_DMA);
+                               &sst_fw->dmable_fw_paddr, GFP_DMA | GFP_KERNEL);
        if (!sst_fw->dma_buf) {
                dev_err(dsp->dev, "error: DMA alloc failed\n");
                kfree(sst_fw);