diff options
author | Thierry Reding <treding@nvidia.com> | 2013-10-31 16:28:50 +0400 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2013-12-20 18:56:05 +0400 |
commit | 60c2f709d9b41184e0279d7538a5217885da8dde (patch) | |
tree | 502bf1bd5dc39ed3adfa5b8270381d40e40403e3 /drivers/gpu/drm/tegra/drm.c | |
parent | d30a91f8e22bc388e071044c4b774fde485ba91e (diff) | |
download | linux-60c2f709d9b41184e0279d7538a5217885da8dde.tar.xz |
drm/tegra: Make legacy fbdev support optional
A lot of the modern userspace is capable of working without the legacy
fbdev support. kmscon can be used as a replacement for the framebuffer
console, and KMS X drivers create their own framebuffers.
Most people don't have a system where all of this works yet, though, so
leave support enabled by default.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/drm.c')
-rw-r--r-- | drivers/gpu/drm/tegra/drm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c index 08e9e3740c13..a0b34816298c 100644 --- a/drivers/gpu/drm/tegra/drm.c +++ b/drivers/gpu/drm/tegra/drm.c @@ -104,9 +104,11 @@ static void tegra_drm_context_free(struct tegra_drm_context *context) static void tegra_drm_lastclose(struct drm_device *drm) { +#ifdef CONFIG_TEGRA_DRM_FBDEV struct tegra_drm *tegra = drm->dev_private; tegra_fbdev_restore_mode(tegra->fbdev); +#endif } static struct host1x_bo * |