[PATCH -mm] leds: fix pca9532 build when GPIOLIB is disabled

From: Randy Dunlap
Date: Fri Apr 01 2011 - 11:57:19 EST


From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>

Fix build when GPIOLIB is not enabled:

drivers/leds/leds-pca9532.c:39: error: field 'gpio' has incomplete type

for: drivers-leds-leds-pca9532c-add-gpio-capability.patch

Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
Cc: Joachim Eastwood <manabian@xxxxxxxxx>
---
drivers/leds/leds-pca9532.c | 2 ++
1 file changed, 2 insertions(+)

--- mmotm-2011-0331-1448.orig/drivers/leds/leds-pca9532.c
+++ mmotm-2011-0331-1448/drivers/leds/leds-pca9532.c
@@ -36,7 +36,9 @@ struct pca9532_data {
struct mutex update_lock;
struct input_dev *idev;
struct work_struct work;
+#ifdef CONFIG_LEDS_PCA9532_GPIO
struct gpio_chip gpio;
+#endif
u8 pwm[2];
u8 psc[2];
};
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/