aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/sti
diff options
context:
space:
mode:
authorArchit Taneja <architt@codeaurora.org>2015-10-27 04:10:58 -0400
committerVincent Abriou <vincent.abriou@st.com>2015-11-03 07:04:55 -0500
commitb5d34a272d37c08612aaea9601ddd311757fd149 (patch)
treedfe18a82ab31296fb0993d8787816b9fec807601 /drivers/gpu/drm/sti
parentcebd6fbeb2fc9e7c4f10f3656fe9f1ba863a8549 (diff)
drm/sti: Remove local fbdev emulation Kconfig option
DRM_STI_FBDEV config is currently used to enable/disable fbdev emulation for the sti kms driver. Remove this local config option and use the core fb helpers with drm_kms_helper.fbdev_emulation module option to enable/disable fbdev at runtime. Signed-off-by: Archit Taneja <architt@codeaurora.org> Reviewed-by: Vincent Abriou <vincent.abriou@st.com>
Diffstat (limited to 'drivers/gpu/drm/sti')
-rw-r--r--drivers/gpu/drm/sti/Kconfig6
-rw-r--r--drivers/gpu/drm/sti/sti_drv.c3
2 files changed, 1 insertions, 8 deletions
diff --git a/drivers/gpu/drm/sti/Kconfig b/drivers/gpu/drm/sti/Kconfig
index 0a9048c47b95..3f8d590e5c34 100644
--- a/drivers/gpu/drm/sti/Kconfig
+++ b/drivers/gpu/drm/sti/Kconfig
@@ -10,9 +10,3 @@ config DRM_STI
10 select FW_LOADER_USER_HELPER_FALLBACK 10 select FW_LOADER_USER_HELPER_FALLBACK
11 help 11 help
12 Choose this option to enable DRM on STM stiH41x chipset 12 Choose this option to enable DRM on STM stiH41x chipset
13
14config DRM_STI_FBDEV
15 bool "DRM frame buffer device for STMicroelectronics SoC stiH41x Serie"
16 depends on DRM_STI
17 help
18 Choose this option to enable FBDEV on top of DRM for STM stiH41x chipset
diff --git a/drivers/gpu/drm/sti/sti_drv.c b/drivers/gpu/drm/sti/sti_drv.c
index 105e7e54b2a7..45c637534d96 100644
--- a/drivers/gpu/drm/sti/sti_drv.c
+++ b/drivers/gpu/drm/sti/sti_drv.c
@@ -160,11 +160,10 @@ static int sti_load(struct drm_device *dev, unsigned long flags)
160 160
161 drm_mode_config_reset(dev); 161 drm_mode_config_reset(dev);
162 162
163#ifdef CONFIG_DRM_STI_FBDEV
164 drm_fbdev_cma_init(dev, 32, 163 drm_fbdev_cma_init(dev, 32,
165 dev->mode_config.num_crtc, 164 dev->mode_config.num_crtc,
166 dev->mode_config.num_connector); 165 dev->mode_config.num_connector);
167#endif 166
168 return 0; 167 return 0;
169} 168}
170 169