Skip to content
Commit 33ca1532 authored by Chen Gang's avatar Chen Gang Committed by Bryan Wu
Browse files

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: default avatarChen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: default avatarBryan Wu <cooloney@gmail.com>
parent 93ad8a1d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment