gpio-button-hotplug: fix 4.19 build breakage on malta/be64
authorPetr Štetiar <ynezz@true.cz>
Sat, 15 Jun 2019 09:28:05 +0000 (09:28 +0000)
committerPetr Štetiar <ynezz@true.cz>
Mon, 17 Jun 2019 07:42:36 +0000 (09:42 +0200)
While testing 4.19 build on malta/be64, I've encountered following
error:

 gpio-button-hotplug/gpio-button-hotplug.c:529:18: error: implicit
 declaration of function 'gpio_to_desc'

which is caused by the missing include fixed by this patch.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c

index daa4b2a4f71951e7a73585e63d194bae0b19cbae..e63d41428496bc230cc6e623736fbe06ed15324e 100644 (file)
@@ -28,6 +28,7 @@
 #include <linux/of_gpio.h>
 #include <linux/of_irq.h>
 #include <linux/gpio_keys.h>
+#include <linux/gpio/consumer.h>
 
 #define BH_SKB_SIZE    2048