--- a/compat/backport-4.5.c +++ b/compat/backport-4.5.c @@ -8,11 +8,13 @@ * published by the Free Software Foundation. */ -#include #include #include #include +#ifdef CONFIG_NEW_LEDS +#include + #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0) int led_set_brightness_sync(struct led_classdev *led_cdev, enum led_brightness value) @@ -32,6 +34,7 @@ int led_set_brightness_sync(struct led_c } EXPORT_SYMBOL_GPL(led_set_brightness_sync); #endif /* >= 3.19 */ +#endif /* CONFIG_NEW_LEDS */ #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0) /**