]> git.karo-electronics.de Git - linux-beck.git/commitdiff
greybus: adjust kernel version check for led_sysfs_is_disabled
authorMichael Scott <michael.scott@linaro.org>
Tue, 21 Jun 2016 23:41:46 +0000 (16:41 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 23 Jun 2016 18:50:58 +0000 (11:50 -0700)
When building greybus against a 3.18 kernel the following error is generated:
light.c:205:9: error: implicit declaration of function 'led_sysfs_is_disabled'
[-Werror=implicit-function-declaration]

led_sysfs_is_disabled was not added until 3.19 kernel cycle

Verification:
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/include/linux/leds.h?h=linux-3.18.y
(no function led_sysfs_is_disabled defined here)

Testing Done:
- Successfully built greybus for 3.18 kernel

Signed-off-by: Michael Scott <michael.scott@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/kernel_ver.h

index 2a541fa5f5bcdd0a69ef35d9e84d83f23c28d967..98e3179cc00dc9a59884fa5dbf344d94af83cb00 100644 (file)
@@ -276,7 +276,7 @@ static inline size_t sg_pcopy_from_buffer(struct scatterlist *sgl,
 #define LED_HAVE_SET_BLOCKING
 #endif
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 19, 0)
 /*
  * From this version upper it was introduced the possibility to disable led
  * sysfs entries to handle control of the led device to v4l2, which was