kernel: refresh 3.12 patches on -rc7 release
[openwrt.git] / target / linux / generic / patches-3.12 / 832-ledtrig_usbdev.patch
1 --- a/drivers/leds/trigger/Kconfig
2 +++ b/drivers/leds/trigger/Kconfig
3 @@ -119,4 +119,11 @@ config LEDS_TRIGGER_NETDEV
4           This allows LEDs to be controlled by network device activity.
5           If unsure, say Y.
6  
7 +config LEDS_TRIGGER_USBDEV
8 +       tristate "LED USB device Trigger"
9 +       depends on USB && LEDS_TRIGGERS
10 +       help
11 +         This allows LEDs to be controlled by the presence/activity of
12 +         an USB device. If unsure, say N.
13 +
14  endif # LEDS_TRIGGERS
15 --- a/drivers/leds/Makefile
16 +++ b/drivers/leds/Makefile
17 @@ -61,3 +61,4 @@ obj-$(CONFIG_LEDS_DAC124S085)         += leds-d
18  obj-$(CONFIG_LEDS_TRIGGERS)            += trigger/
19  obj-$(CONFIG_LEDS_TRIGGER_MORSE)       += ledtrig-morse.o
20  obj-$(CONFIG_LEDS_TRIGGER_NETDEV)      += ledtrig-netdev.o
21 +obj-$(CONFIG_LEDS_TRIGGER_USBDEV)      += ledtrig-usbdev.o
22 --- a/drivers/leds/ledtrig-usbdev.c
23 +++ b/drivers/leds/ledtrig-usbdev.c
24 @@ -24,7 +24,6 @@
25  #include <linux/list.h>
26  #include <linux/spinlock.h>
27  #include <linux/device.h>
28 -#include <linux/sysdev.h>
29  #include <linux/timer.h>
30  #include <linux/ctype.h>
31  #include <linux/slab.h>