drm/tegra: kick out simplefb
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Sat, 1 Sep 2018 14:08:51 +0000 (16:08 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 3 Sep 2018 16:18:08 +0000 (18:18 +0200)
Kick out firmware fb when loading Tegra driver.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/b5c3972e5774d0d1f8887054a993bbc54e9dbe2a.1535810304.git.mirq-linux@rere.qmqm.pl
drivers/gpu/drm/tegra/drm.c

index a2bd5876c633515950f23be6cdff6f0f49306312..b424bc911b953902d752b29517cf11f0885b4d29 100644 (file)
@@ -1187,6 +1187,10 @@ static int host1x_drm_probe(struct host1x_device *dev)
 
        dev_set_drvdata(&dev->dev, drm);
 
+       err = drm_fb_helper_remove_conflicting_framebuffers(NULL, "tegradrmfb", false);
+       if (err < 0)
+               goto unref;
+
        err = drm_dev_register(drm, 0);
        if (err < 0)
                goto unref;