kernel: port missing ubi EOF marker support patch to 3.19 and 4.0
[openwrt/svn-archive/archive.git] / target / linux / generic / patches-3.19 / 830-ledtrig_morse.patch
1 --- a/drivers/leds/trigger/Kconfig
2 +++ b/drivers/leds/trigger/Kconfig
3 @@ -108,4 +108,8 @@ config LEDS_TRIGGER_CAMERA
4 This enables direct flash/torch on/off by the driver, kernel space.
5 If unsure, say Y.
6
7 +config LEDS_TRIGGER_MORSE
8 + tristate "LED Morse Trigger"
9 + depends on LEDS_TRIGGERS
10 +
11 endif # LEDS_TRIGGERS
12 --- a/drivers/leds/Makefile
13 +++ b/drivers/leds/Makefile
14 @@ -63,3 +63,4 @@ obj-$(CONFIG_LEDS_DAC124S085) += leds-d
15
16 # LED Triggers
17 obj-$(CONFIG_LEDS_TRIGGERS) += trigger/
18 +obj-$(CONFIG_LEDS_TRIGGER_MORSE) += ledtrig-morse.o
19 --- a/drivers/leds/ledtrig-morse.c
20 +++ b/drivers/leds/ledtrig-morse.c
21 @@ -26,7 +26,6 @@
22 #include <linux/list.h>
23 #include <linux/spinlock.h>
24 #include <linux/device.h>
25 -#include <linux/sysdev.h>
26 #include <linux/timer.h>
27 #include <linux/ctype.h>
28 #include <linux/leds.h>