On Sun, Dec 8, 2013 at 8:41 PM, Chen Gang <gang.chen.5i5j@xxxxxxxxx> wrote: > > Need check CONFIG_GPIOLIB whether defined, just like another area has > done within this file. Or can not pass compiling when CONFIG_GPIOLIB > disabled. > > The related error (with allmodconfig for metag): > > CC [M] drivers/leds/leds-tca6507.o > drivers/leds/leds-tca6507.c: In function 'tca6507_led_dt_init': > drivers/leds/leds-tca6507.c:731: error: 'struct tca6507_platform_data' has no member named 'gpio_base' > > Good, I merged it into my tree. Thanks, -Bryan > > Signed-off-by: Chen Gang <gang.chen.5i5j@xxxxxxxxx> > --- > drivers/leds/leds-tca6507.c | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/drivers/leds/leds-tca6507.c b/drivers/leds/leds-tca6507.c > index 503df83..3d9e267 100644 > --- a/drivers/leds/leds-tca6507.c > +++ b/drivers/leds/leds-tca6507.c > @@ -728,8 +728,9 @@ tca6507_led_dt_init(struct i2c_client *client) > > pdata->leds.leds = tca_leds; > pdata->leds.num_leds = NUM_LEDS; > +#ifdef CONFIG_GPIOLIB > pdata->gpio_base = -1; > - > +#endif > return pdata; > } > > -- > 1.7.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-leds" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html