OSDN Git Service

ARM: pxa: include linux/leds.h
authorArnd Bergmann <arnd@arndb.de>
Wed, 18 Jan 2017 16:49:24 +0000 (17:49 +0100)
committerRobert Jarzmik <robert.jarzmik@free.fr>
Wed, 18 Jan 2017 18:21:17 +0000 (19:21 +0100)
When the header is not included implicitly, we get a build failure:

arch/arm/mach-pxa/idp.c:205:22: error: field 'cdev' has incomplete type
  struct led_classdev     cdev;

This adds an explicit #include.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
arch/arm/mach-pxa/idp.c

index d1db32b..88e0068 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/irq.h>
+#include <linux/leds.h>
 #include <linux/platform_device.h>
 #include <linux/fb.h>