mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 13:03:48 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user