From: Chen Gang Date: Mon, 9 Dec 2013 04:41:37 +0000 (-0800) Subject: drivers: leds: leds-tca6507: check CONFIG_GPIOLIB whether defined for 'gpio_base' X-Git-Tag: v3.14-rc1~66^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33ca15325ff371be7f20be7534f5aa5b6a00b558;p=pandora-kernel.git 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 Signed-off-by: Bryan Wu --- Reading git-diff-tree failed