drivers: leds: leds-tca6507: check CONFIG_GPIOLIB whether defined for 'gpio_base'
authorChen Gang <gang.chen.5i5j@gmail.com>
Mon, 9 Dec 2013 04:41:37 +0000 (20:41 -0800)
committerBryan Wu <cooloney@gmail.com>
Tue, 28 Jan 2014 01:28:49 +0000 (17:28 -0800)
commit33ca15325ff371be7f20be7534f5aa5b6a00b558
treeee06a700ebf1641c9ab4d8cee380b16bcf7c78c1
parent93ad8a1d59a35ef7b489a83552daee6506f47815
drivers: leds: leds-tca6507: check CONFIG_GPIOLIB whether defined for 'gpio_base'

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'

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds-tca6507.c