mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
drm/tegra: Remove existing framebuffer only if we support display
Tegra DRM doesn't support display on Tegra234 and later, so make sure not to remove any existing framebuffers in that case. Signed-off-by: Thierry Reding <treding@nvidia.com> Change-Id: I410c6dc73b3b00caf9bef4b3a047c741223e75f0 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2968311 Reviewed-by: Santosh Galma <galmar@nvidia.com> Tested-by: Santosh Galma <galmar@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
8c434bce54
commit
fe4df61d9f
@@ -1297,13 +1297,15 @@ static int host1x_drm_probe(struct host1x_device *dev)
|
||||
|
||||
drm_mode_config_reset(drm);
|
||||
|
||||
if (drm->mode_config.num_crtc > 0) {
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0)
|
||||
err = drm_aperture_remove_framebuffers(false, &tegra_drm_driver);
|
||||
err = drm_aperture_remove_framebuffers(false, &tegra_drm_driver);
|
||||
#else
|
||||
err = drm_aperture_remove_framebuffers(false, "tegradrmfb");
|
||||
err = drm_aperture_remove_framebuffers(false, "tegradrmfb");
|
||||
#endif
|
||||
if (err < 0)
|
||||
goto hub;
|
||||
if (err < 0)
|
||||
goto hub;
|
||||
}
|
||||
|
||||
err = tegra_drm_fb_init(drm);
|
||||
if (err < 0)
|
||||
|
||||
Reference in New Issue
Block a user