Messages in this thread Patch in this message | | | Date | Fri, 1 Apr 2011 08:57:12 -0700 | From | Randy Dunlap <> | Subject | [PATCH -mm] leds: fix pca9532 build when GPIOLIB is disabled |
| |
From: Randy Dunlap <randy.dunlap@oracle.com>
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@oracle.com> Cc: Joachim Eastwood <manabian@gmail.com> --- 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]; };
| |