summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiam Girdwood <liam.r.girdwood@linux.intel.com>2014-02-18 10:41:50 +0000
committerMark Brown <broonie@linaro.org>2014-02-19 13:25:52 +0900
commit2280e90efae92060f6fa717fb1afa9861bd2b520 (patch)
tree30b6dd4ab2a325df5d044d22653e1bb4636b9456
parentddfa40b1586f8c7c6bb8bb9dd398cf656c98e6ee (diff)
downloadop-kernel-dev-2280e90efae92060f6fa717fb1afa9861bd2b520.zip
op-kernel-dev-2280e90efae92060f6fa717fb1afa9861bd2b520.tar.gz
ASoC: Intel: Add GFP_KERNEL flag to firmware DMA buffer.
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>
-rw-r--r--sound/soc/intel/sst-firmware.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/sst-firmware.c b/sound/soc/intel/sst-firmware.c
index b6f9b5e..31cd154 100644
--- a/sound/soc/intel/sst-firmware.c
+++ b/sound/soc/intel/sst-firmware.c
@@ -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);
OpenPOWER on IntegriCloud