From: acoul Date: Mon, 4 Jan 2016 16:51:01 +0000 (+0200) Subject: package/mac80211: fix led code X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;h=17509ce99556fb929e0bd1dfbe3c8ef0ca709b92;p=openwrt-working-2016%2F.git package/mac80211: fix led code --- diff --git a/package/kernel/mac80211/patches/999-fix_led_code.patch b/package/kernel/mac80211/patches/999-fix_led_code.patch new file mode 100644 index 0000000000..0e568d5bca --- /dev/null +++ b/package/kernel/mac80211/patches/999-fix_led_code.patch @@ -0,0 +1,21 @@ +--- a/compat/backport-4.5.c ++++ b/compat/backport-4.5.c +@@ -8,10 +8,12 @@ + * published by the Free Software Foundation. + */ + +-#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) +@@ -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 */