Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/mxsfb: Remove generic DRM drivers in probe function

Use aperture helpers to remove all generic graphics drivers before
loading mxsfb. Makes mxsfb compatible with simpledrm.

Co-developed-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20250305140929.174398-1-dario.binacchi@amarulasolutions.com

authored by

Dario Binacchi and committed by
Thomas Zimmermann
c8e7b185 edd9231f

+10
+10
drivers/gpu/drm/mxsfb/mxsfb_drv.c
··· 8 8 * Copyright (C) 2008 Embedded Alley Solutions, Inc All Rights Reserved. 9 9 */ 10 10 11 + #include <linux/aperture.h> 11 12 #include <linux/clk.h> 12 13 #include <linux/dma-mapping.h> 13 14 #include <linux/io.h> ··· 359 358 ret = mxsfb_load(drm, device_get_match_data(&pdev->dev)); 360 359 if (ret) 361 360 goto err_free; 361 + 362 + /* 363 + * Remove early framebuffers (ie. simplefb). The framebuffer can be 364 + * located anywhere in RAM 365 + */ 366 + ret = aperture_remove_all_conflicting_devices(mxsfb_driver.name); 367 + if (ret) 368 + return dev_err_probe(&pdev->dev, ret, 369 + "can't kick out existing framebuffers\n"); 362 370 363 371 ret = drm_dev_register(drm, 0); 364 372 if (ret)