drm/tegra: Hide fbdev support behind config option
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 30 Mar 2023 08:36:05 +0000 (10:36 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 6 Apr 2023 10:18:54 +0000 (12:18 +0200)
commit1ac45068af9d6994dd6679bfbd0ff6cb0fc076da
tree804d7ef3cf5caecbb0e313642fbc9ca8246fc927
parent434434608a918f33dbb613995f2b18d3007968c1
drm/tegra: Hide fbdev support behind config option

Only build tegra's fbdev emulation if CONFIG_DRM_FBDEV_EMULATION
has been enabled. As part of this change, move the code into its
own source file. No functional changes.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/Makefile
drivers/gpu/drm/tegra/drm.h
drivers/gpu/drm/tegra/fb.c
drivers/gpu/drm/tegra/fbdev.c [new file with mode: 0644]