summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaoquan He <hebaoquan@kylinos.cn>2026-09-03 19:18:28 +0800
committerAndrew Morton <akpm@linux-foundation.org>2026-10-24 01:55:59 -0700
commit5f0f758d36730dfbd75be3c722e40d4f98fa7d03 (patch)
tree52fff4e873299653a39ecc78ae36bd83fdb90a91
parenteae6eecd67c9bca9901d762c2d15c671d90e609f (diff)
fbdev: fsl-diu-fb: don't use GFP_DMA when calling dmam_alloc_coherent()
dmam_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/20260903111836.1777265-6-hebaoquan@kylinos.cn Signed-off-by: Baoquan He <hebaoquan@kylinos.cn> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: Christoph Hellwig <hch@lst.de> Cc: Harry Yoo <harry@kernel.org>
-rw-r--r--drivers/video/fbdev/fsl-diu-fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/fsl-diu-fb.c b/drivers/video/fbdev/fsl-diu-fb.c
index b71d15794ce8..d7ed007915c1 100644
--- a/drivers/video/fbdev/fsl-diu-fb.c
+++ b/drivers/video/fbdev/fsl-diu-fb.c
@@ -1690,7 +1690,7 @@ static int fsl_diu_probe(struct platform_device *pdev)
int ret;
data = dmam_alloc_coherent(&pdev->dev, sizeof(struct fsl_diu_data),
- &dma_addr, GFP_DMA | __GFP_ZERO);
+ &dma_addr, __GFP_ZERO);
if (!data)
return -ENOMEM;
data->dma_addr = dma_addr;