Skip to content

Commit 942e54a

Browse files
committed
drm/tidss: Remove early fb
Add a call to drm_aperture_remove_framebuffers() to drop the possible early fb (simplefb). Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Link: https://lore.kernel.org/r/20250416-tidss-splash-v1-2-4ff396eb5008@ideasonboard.com Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
1 parent 852bb7c commit 942e54a

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

drivers/gpu/drm/tidss/tidss_drv.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <linux/of.h>
99
#include <linux/module.h>
1010
#include <linux/pm_runtime.h>
11+
#include <linux/aperture.h>
1112

1213
#include <drm/clients/drm_client_setup.h>
1314
#include <drm/drm_atomic.h>
@@ -192,12 +193,20 @@ static int tidss_probe(struct platform_device *pdev)
192193
goto err_irq_uninstall;
193194
}
194195

196+
/* Remove possible early fb before setting up the fbdev */
197+
ret = aperture_remove_all_conflicting_devices(tidss_driver.name);
198+
if (ret)
199+
goto err_drm_dev_unreg;
200+
195201
drm_client_setup(ddev, NULL);
196202

197203
dev_dbg(dev, "%s done\n", __func__);
198204

199205
return 0;
200206

207+
err_drm_dev_unreg:
208+
drm_dev_unregister(ddev);
209+
201210
err_irq_uninstall:
202211
tidss_irq_uninstall(ddev);
203212

0 commit comments

Comments
 (0)