ASoC: intel: don't pass GFP_DMA32 to dma_alloc_coherent
authorChristoph Hellwig <hch@lst.de>
Sat, 13 Oct 2018 15:17:04 +0000 (17:17 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 17 Oct 2018 10:10:48 +0000 (11:10 +0100)
The DMA API does its own zone decisions based on the coherent_dma_mask.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/common/sst-firmware.c

index 11041aedea312cf1bae7ae4de23cacde9552d9d5..1e067504b6043b85a6a1c223a23298eb577e42dd 100644 (file)
@@ -355,7 +355,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->dma_dev, sst_fw->size,
-                               &sst_fw->dmable_fw_paddr, GFP_DMA | GFP_KERNEL);
+                               &sst_fw->dmable_fw_paddr, GFP_KERNEL);
        if (!sst_fw->dma_buf) {
                dev_err(dsp->dev, "error: DMA alloc failed\n");
                kfree(sst_fw);