<div dir="ltr">I was close the send a patch it remove this flag but more inspired by what Rob has done few weeks ago:<div><a href="http://cgit.freedesktop.org/~airlied/linux/commit/?h=drm-next&id=e90dfec78ec288d6c89a7b508a5c5d4ae8b7f934">http://cgit.freedesktop.org/~airlied/linux/commit/?h=drm-next&id=e90dfec78ec288d6c89a7b508a5c5d4ae8b7f934</a><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-10 10:41 GMT+01:00 Archit Taneja <span dir="ltr"><<a href="mailto:architt@codeaurora.org" target="_blank">architt@codeaurora.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">DRM_STI_FBDEV config is currently used to enable/disable fbdev emulation for<br>
the sti kms driver.<br>
<br>
Remove this local config option and use the top level DRM_FBDEV_EMULATION config<br>
option instead where applicable.<br>
<br>
We replace the #ifdef in sti_drm_load with CONFIG_DRM_FBDEV_EMULATION. It's<br>
probably okay to get remove the #ifdef itself, but just left it here for now to<br>
be safe. It can be removed after some testing.<br>
<br>
Signed-off-by: Archit Taneja <<a href="mailto:architt@codeaurora.org">architt@codeaurora.org</a>><br>
---<br>
 drivers/gpu/drm/sti/Kconfig       | 6 ------<br>
 drivers/gpu/drm/sti/sti_drm_drv.c | 2 +-<br>
 2 files changed, 1 insertion(+), 7 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/sti/Kconfig b/drivers/gpu/drm/sti/Kconfig<br>
index fbccc10..e3aa5af 100644<br>
--- a/drivers/gpu/drm/sti/Kconfig<br>
+++ b/drivers/gpu/drm/sti/Kconfig<br>
@@ -9,9 +9,3 @@ config DRM_STI<br>
        select FW_LOADER_USER_HELPER_FALLBACK<br>
        help<br>
          Choose this option to enable DRM on STM stiH41x chipset<br>
-<br>
-config DRM_STI_FBDEV<br>
-       bool "DRM frame buffer device for STMicroelectronics SoC stiH41x Serie"<br>
-       depends on DRM_STI<br>
-       help<br>
-         Choose this option to enable FBDEV on top of DRM for STM stiH41x chipset<br>
diff --git a/drivers/gpu/drm/sti/sti_drm_drv.c b/drivers/gpu/drm/sti/sti_drm_drv.c<br>
index 5239fa1..90f121d 100644<br>
--- a/drivers/gpu/drm/sti/sti_drm_drv.c<br>
+++ b/drivers/gpu/drm/sti/sti_drm_drv.c<br>
@@ -76,7 +76,7 @@ static int sti_drm_load(struct drm_device *dev, unsigned long flags)<br>
<br>
        drm_helper_disable_unused_functions(dev);<br>
<br>
-#ifdef CONFIG_DRM_STI_FBDEV<br>
+#ifdef CONFIG_DRM_FBDEV_EMULATION<br>
        drm_fbdev_cma_init(dev, 32,<br>
                   dev->mode_config.num_crtc,<br>
                   dev->mode_config.num_connector);<br>
<span class="HOEnZb"><font color="#888888">--<br>
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,<br>
hosted by The Linux Foundation<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">Benjamin Gaignard </p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">Graphic Working Group</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span lang="EN-US" style="font-size:10pt;color:rgb(0,176,80)"><span style="color:rgb(0,68,252)"><a href="http://www.linaro.org/" style="color:rgb(0,0,204)" target="_blank">Linaro.org</a></span><b> </b></span><b><span lang="EN-US" style="font-size:10pt">│ </span></b><span lang="EN-US" style="font-size:10pt">Open source software for ARM SoCs</span></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><u></u></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span lang="EN-US" style="font-size:10pt">Follow <b>Linaro: </b></span><span style="font-size:10pt;color:rgb(0,68,252)"><a href="http://www.facebook.com/pages/Linaro" style="color:rgb(0,0,204)" target="_blank"><span style="color:blue">Facebook</span></a></span><span style="font-size:10pt"> | <span style="color:rgb(0,68,252)"><a href="http://twitter.com/#!/linaroorg" style="color:rgb(0,0,204)" target="_blank"><span style="color:blue">Twitter</span></a></span> | <span style="color:rgb(0,68,252)"><a href="http://www.linaro.org/linaro-blog/" style="color:rgb(0,0,204)" target="_blank"><span style="color:blue">Blog</span></a></span></span></p></span></div>
</div>