public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm: msm: Fix build when legacy fbdev support isn't set
@ 2015-02-23 10:29 Archit Taneja
  2015-02-23 13:33 ` Rob Clark
  0 siblings, 1 reply; 13+ messages in thread
From: Archit Taneja @ 2015-02-23 10:29 UTC (permalink / raw)
  To: robdclark; +Cc: dri-devel, linux-arm-msm, linux-kernel, Archit Taneja

The DRM_KMS_FB_HELPER config is selected only when DRM_MSM_FBDEV config is
selected. The driver accesses drm_fb_helper_* functions even when legacy fbdev
support is disabled in msm. Wrap around these functions with #ifdef checks to
prevent build break.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
---
 drivers/gpu/drm/msm/msm_drv.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c
index a426911..f15494c 100644
--- a/drivers/gpu/drm/msm/msm_drv.c
+++ b/drivers/gpu/drm/msm/msm_drv.c
@@ -21,9 +21,11 @@
 
 static void msm_fb_output_poll_changed(struct drm_device *dev)
 {
+#ifdef CONFIG_DRM_MSM_FBDEV
 	struct msm_drm_private *priv = dev->dev_private;
 	if (priv->fbdev)
 		drm_fb_helper_hotplug_event(priv->fbdev);
+#endif
 }
 
 static const struct drm_mode_config_funcs mode_config_funcs = {
@@ -373,9 +375,11 @@ static void msm_preclose(struct drm_device *dev, struct drm_file *file)
 
 static void msm_lastclose(struct drm_device *dev)
 {
+#ifdef CONFIG_DRM_MSM_FBDEV
 	struct msm_drm_private *priv = dev->dev_private;
 	if (priv->fbdev)
 		drm_fb_helper_restore_fbdev_mode_unlocked(priv->fbdev);
+#endif
 }
 
 static irqreturn_t msm_irq(int irq, void *arg)
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-03-09 15:01 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-23 10:29 [PATCH] drm: msm: Fix build when legacy fbdev support isn't set Archit Taneja
2015-02-23 13:33 ` Rob Clark
2015-02-23 14:09   ` Daniel Vetter
2015-02-23 15:03     ` Rob Clark
2015-02-23 15:39       ` Daniel Vetter
2015-03-05 10:06         ` Archit Taneja
2015-03-05 12:10           ` Rob Clark
2015-03-05 15:44             ` Daniel Vetter
2015-03-09  5:57               ` Archit Taneja
2015-03-09  7:44                 ` Daniel Vetter
2015-03-09  8:54                   ` Archit Taneja
2015-03-09 12:17                     ` Rob Clark
2015-03-09 15:03                     ` Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox