Skip to content

Commit

Permalink
ASoC: intel: don't pass GFP_DMA32 to dma_alloc_coherent
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig authored and Mark Brown committed Oct 17, 2018
1 parent 6530ade commit 3b99103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/intel/common/sst-firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3b99103

Please sign in to comment.