832-ledtrig_usbdev.patch 1.0 KB

12345678910111213141516171819202122232425262728293031
  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. +config LEDS_TRIGGER_USBDEV
  7. + tristate "LED USB device Trigger"
  8. + depends on USB && LEDS_TRIGGERS
  9. + help
  10. + This allows LEDs to be controlled by the presence/activity of
  11. + an USB device. If unsure, say N.
  12. +
  13. endif # LEDS_TRIGGERS
  14. --- a/drivers/leds/Makefile
  15. +++ b/drivers/leds/Makefile
  16. @@ -67,3 +67,4 @@ obj-$(CONFIG_LEDS_DAC124S085) += leds-d
  17. obj-$(CONFIG_LEDS_TRIGGERS) += trigger/
  18. obj-$(CONFIG_LEDS_TRIGGER_MORSE) += ledtrig-morse.o
  19. obj-$(CONFIG_LEDS_TRIGGER_NETDEV) += ledtrig-netdev.o
  20. +obj-$(CONFIG_LEDS_TRIGGER_USBDEV) += ledtrig-usbdev.o
  21. --- a/drivers/leds/ledtrig-usbdev.c
  22. +++ b/drivers/leds/ledtrig-usbdev.c
  23. @@ -24,7 +24,6 @@
  24. #include <linux/list.h>
  25. #include <linux/spinlock.h>
  26. #include <linux/device.h>
  27. -#include <linux/sysdev.h>
  28. #include <linux/timer.h>
  29. #include <linux/ctype.h>
  30. #include <linux/slab.h>