From: Arnd Bergmann Date: Fri, 17 Feb 2017 14:41:42 +0000 Subject: [PATCH] fbdev: ssd1307fb: include linux/gpio/consumer.h Message-Id: <20170217144226.2250882-1-arnd@arndb.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Bartlomiej Zolnierkiewicz , Tomi Valkeinen Cc: Arnd Bergmann , Jyri Sarha , LABBE Corentin , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Changing this driver to the gpiod API requires the use of the new-style header, depending on the configuration: drivers/video/fbdev/ssd1307fb.c: In function 'ssd1307fb_probe': drivers/video/fbdev/ssd1307fb.c:569:15: error: implicit declaration of function 'devm_gpiod_get_optional';did you mean 'devm_regulator_get_optional'? [-Werror=implicit-function-declaration] drivers/video/fbdev/ssd1307fb.c:570:11: error: 'GPIOD_OUT_LOW' undeclared (first use in this function) Fixes: 72db33355c14 ("fbdev: ssd1307fb: Start to use gpiod API for reset gpio") Signed-off-by: Arnd Bergmann --- drivers/video/fbdev/ssd1307fb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c index 5c87ae4bac6a..bd017b57c47f 100644 --- a/drivers/video/fbdev/ssd1307fb.c +++ b/drivers/video/fbdev/ssd1307fb.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include -- 2.9.0