1 --- a/compat/backport-4.5.c
2 +++ b/compat/backport-4.5.c
4 * published by the Free Software Foundation.
7 -#include <linux/leds.h>
8 #include <linux/export.h>
9 #include <linux/errno.h>
12 +#ifdef CONFIG_NEW_LEDS
13 +#include <linux/leds.h>
15 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0)
16 int led_set_brightness_sync(struct led_classdev *led_cdev,
17 enum led_brightness value)
18 @@ -32,6 +34,7 @@ int led_set_brightness_sync(struct led_c
20 EXPORT_SYMBOL_GPL(led_set_brightness_sync);
22 +#endif /* CONFIG_NEW_LEDS */
24 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)