package/mac80211: ozonet diet: update led code isolation
[openwrt-working-2016/.git] / package / kernel / mac80211 / patches / 999-fix_led_code.patch
index 0e568d5bcad0729c19d17c4dc27d35966042633b..3f93d156d89275674eb87ebd42e3586bad1b7722 100644 (file)
@@ -1,12 +1,13 @@
 --- a/compat/backport-4.5.c
 +++ b/compat/backport-4.5.c
-@@ -8,10 +8,12 @@
+@@ -8,11 +8,13 @@
   * published by the Free Software Foundation.
   */
  
 -#include <linux/leds.h>
  #include <linux/export.h>
  #include <linux/errno.h>
+ #include <linux/fs.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
+@@ -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)
+ /**