From: Arnd Bergmann Date: Mon, 20 Feb 2017 12:51:07 +0000 (+0100) Subject: fbdev: ssd1307fb: include linux/gpio/consumer.h X-Git-Tag: v4.11-rc1~74^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=580203f10e0e060c35a526c3c67d6c1a44109664;p=platform%2Fkernel%2Flinux-exynos.git fbdev: ssd1307fb: include linux/gpio/consumer.h 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") Cc: Tomi Valkeinen Cc: Jyri Sarha Cc: LABBE Corentin Signed-off-by: Arnd Bergmann Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c index 5c87ae4b..bd017b5 100644 --- a/drivers/video/fbdev/ssd1307fb.c +++ b/drivers/video/fbdev/ssd1307fb.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include