spi: pic32-sqi: don't pass GFP_DMA32 to dma_alloc_coherent
authorChristoph Hellwig <hch@lst.de>
Sat, 13 Oct 2018 15:17:02 +0000 (17:17 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 17 Oct 2018 10:11:32 +0000 (11:11 +0100)
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>
drivers/spi/spi-pic32-sqi.c

index 62e6bf1f50b100fcd4813aa988635ddd42480807..d7e4e18ec3df1b2414a0096d6d38fed296077ebd 100644 (file)
@@ -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;