--- /dev/null
+--- a/compat/backport-4.5.c
++++ b/compat/backport-4.5.c
+@@ -8,10 +8,12 @@
+ * published by the Free Software Foundation.
+ */
+
+-#include <linux/leds.h>
+ #include <linux/export.h>
+ #include <linux/errno.h>
+
++#ifdef CONFIG_NEW_LEDS
++#include <linux/leds.h>
++
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0)
+ int led_set_brightness_sync(struct led_classdev *led_cdev,
+ enum led_brightness value)
+@@ -31,3 +33,4 @@ int led_set_brightness_sync(struct led_c
+ }
+ EXPORT_SYMBOL_GPL(led_set_brightness_sync);
+ #endif /* >= 3.19 */
++#endif /* CONFIG_NEW_LEDS */