Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1397427

[PATCH 1/2] drm/omapdrm: include pinctrl/consumer.h where needed

From Arnd Bergmann <arnd@arndb.de>
Newsgroups linux.kernel
Subject [PATCH 1/2] drm/omapdrm: include pinctrl/consumer.h where needed
Date 2016-05-10 00:00 +0200
Message-ID <rx1nB-5F3-17@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


In some configurations, we can build the OMAP dss driver without
implictly including the pinctrl consumer definitions, causing
a build error:

gpu/drm/omapdrm/dss/dss.c: In function 'dss_runtime_suspend':
gpu/drm/omapdrm/dss/dss.c:1268:2: error: implicit declaration of function 'pinctrl_pm_select_sleep_state' [-Werror=implicit-function-declaration]

This adds an explicit #include.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/gpu/drm/omapdrm/dss/dss.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/omapdrm/dss/dss.c b/drivers/gpu/drm/omapdrm/dss/dss.c
index f95ff319e68e..3303cfad4838 100644
--- a/drivers/gpu/drm/omapdrm/dss/dss.c
+++ b/drivers/gpu/drm/omapdrm/dss/dss.c
@@ -30,6 +30,7 @@
 #include <linux/delay.h>
 #include <linux/seq_file.h>
 #include <linux/clk.h>
+#include <linux/pinctrl/consumer.h>
 #include <linux/platform_device.h>
 #include <linux/pm_runtime.h>
 #include <linux/gfp.h>
-- 
2.7.0

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] drm/omapdrm: include pinctrl/consumer.h where needed Arnd Bergmann <arnd@arndb.de> - 2016-05-10 00:00 +0200
  [PATCH 2/2] drm/sti: include linux/seq_file.h where needed Arnd Bergmann <arnd@arndb.de> - 2016-05-10 00:00 +0200
    Re: [PATCH 2/2] drm/sti: include linux/seq_file.h where needed Benjamin Gaignard <benjamin.gaignard@linaro.org> - 2016-05-11 09:10 +0200
      Re: [PATCH 2/2] drm/sti: include linux/seq_file.h where needed Daniel Vetter <daniel@ffwll.ch> - 2016-05-11 09:50 +0200
  Re: [PATCH 1/2] drm/omapdrm: include pinctrl/consumer.h where needed Tomi Valkeinen <tomi.valkeinen@ti.com> - 2016-05-10 13:00 +0200

csiph-web