ALSA: n64: don't use GFP_DMA when calling dma_alloc_coherent()

dma_alloc_coherent() allocates the DMA buffer with the device's addressing
limitation in mind; the DMA core picks the zone from the device's coherent
DMA mask and ignores GFP_DMA passed by the caller.  Remove the redundant
GFP_DMA flag.

Link: https://lore.kernel.org/[email protected]
Signed-off-by: Baoquan He <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Harry Yoo <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
Baoquan He
2026-10-05 15:25:36 +02:00
committed by Takashi Iwai
parent b42663cecd
commit 2964a4aae2
+1 -1
View File
@@ -308,7 +308,7 @@ static int __init n64audio_probe(struct platform_device *pdev)
card->private_free = n64audio_free;
priv->ring_base = dma_alloc_coherent(card->dev, 32 * 1024, &priv->ring_base_dma,
GFP_DMA|GFP_KERNEL);
GFP_KERNEL);
if (!priv->ring_base)
return -ENOMEM;