diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2018-09-01 16:08:51 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2018-09-03 18:18:08 +0200 |
commit | 6e4228fbaf0fce00f3d348a7b89d28288e73293c (patch) | |
tree | f8e802f4a8b6af786b277c65b33deb0084aae1a2 /drivers/gpu/drm/tegra/drm.c | |
parent | a7e3fa76989165f11f11463dd98ead7e5ff80873 (diff) | |
download | lwn-6e4228fbaf0fce00f3d348a7b89d28288e73293c.tar.gz lwn-6e4228fbaf0fce00f3d348a7b89d28288e73293c.zip |
drm/tegra: kick out simplefb
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
Diffstat (limited to 'drivers/gpu/drm/tegra/drm.c')
-rw-r--r-- | drivers/gpu/drm/tegra/drm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c index a2bd5876c633..b424bc911b95 100644 --- a/drivers/gpu/drm/tegra/drm.c +++ b/drivers/gpu/drm/tegra/drm.c @@ -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; |