Skip to content

Commit

Permalink
spi: pic32-sqi: 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>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Christoph Hellwig authored and Mark Brown committed Oct 17, 2018
1 parent 133eb8e commit ec506e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi-pic32-sqi.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ static int ring_desc_ring_alloc(struct pic32_sqi *sqi)
/* allocate coherent DMAable memory for hardware buffer descriptors. */
sqi->bd = dma_zalloc_coherent(&sqi->master->dev,
sizeof(*bd) * PESQI_BD_COUNT,
&sqi->bd_dma, GFP_DMA32);
&sqi->bd_dma, GFP_KERNEL);
if (!sqi->bd) {
dev_err(&sqi->master->dev, "failed allocating dma buffer\n");
return -ENOMEM;
Expand Down

0 comments on commit ec506e9

Please sign in to comment.