diff options
author | Michael Scott <michael.scott@linaro.org> | 2016-06-21 16:41:46 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-06-23 11:50:58 -0700 |
commit | c13a206f7e44d8bb207512dfe58677674e514833 (patch) | |
tree | 74e1ff4ce0ae3741d4c52e0a7f52faa53137670b /drivers/staging | |
parent | 2d533cf16bffc579b03f8e376b2f01f09a092aeb (diff) |
greybus: adjust kernel version check for led_sysfs_is_disabled
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/greybus/kernel_ver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/kernel_ver.h b/drivers/staging/greybus/kernel_ver.h index 2a541fa5f5bc..98e3179cc00d 100644 --- a/drivers/staging/greybus/kernel_ver.h +++ b/drivers/staging/greybus/kernel_ver.h @@ -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 |