From: Arnd Bergmann Date: Mon, 20 Feb 2017 12:51:07 +0000 (+0100) Subject: fbdev: ssd1307fb: include linux/gpio/consumer.h X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=580203f10e0e060c35a526c3c67d6c1a44109664;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 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