summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-pic32-sqi.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-10-13 17:17:02 +0200
committerMark Brown <broonie@kernel.org>2018-10-17 11:11:32 +0100
commitec506e9246bf42795f1fa8a5cd00740e5686ba73 (patch)
tree495a2af90e92b2ca5394364195913e3f0d20e5c4 /drivers/spi/spi-pic32-sqi.c
parent133eb8e38b02c6c63a039523fca12737009a6686 (diff)
downloadlinux-ec506e9246bf42795f1fa8a5cd00740e5686ba73.tar.bz2
spi: pic32-sqi: don't pass GFP_DMA32 to dma_alloc_coherent
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>
Diffstat (limited to 'drivers/spi/spi-pic32-sqi.c')
-rw-r--r--drivers/spi/spi-pic32-sqi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-pic32-sqi.c b/drivers/spi/spi-pic32-sqi.c
index 62e6bf1f50b1..d7e4e18ec3df 100644
--- a/drivers/spi/spi-pic32-sqi.c
+++ b/drivers/spi/spi-pic32-sqi.c
@@ -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;