[PATCH 2/6] video: stm: use DMA_ADDRESS_BROKEN instead of NULL
Ahmad Fatoum
a.fatoum at pengutronix.de
Mon Oct 14 05:58:39 PDT 2024
While functionally the same, DMA_ADDRESS_BROKEN marks that the code is
in need of improvement, so it should be used for documentation purposes.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
drivers/video/stm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/video/stm.c b/drivers/video/stm.c
index 917405ea801f..c88b71195eac 100644
--- a/drivers/video/stm.c
+++ b/drivers/video/stm.c
@@ -325,7 +325,7 @@ static int stmfb_activate_var(struct fb_info *fb_info)
remap_range(fbi->fixed_screen,
fbi->fixed_screen_size, MAP_UNCACHED);
} else {
- fb_info->screen_base = dma_alloc_coherent(size, NULL);
+ fb_info->screen_base = dma_alloc_coherent(size, DMA_ADDRESS_BROKEN);
if (!fb_info->screen_base)
return -ENOMEM;
fbi->memory_size = size;
--
2.39.5
More information about the barebox
mailing list