a218f914da956109fd59fd7513da1f6e77bdb608
[openwrt.git] / target / linux / rb532 / patches / 510-rb500_led.patch
1 diff -urN linux-2.6.23.12/drivers/leds/Kconfig linux-2.6.23.12.new/drivers/leds/Kconfig
2 --- linux-2.6.23.12/drivers/leds/Kconfig        2007-12-18 22:55:57.000000000 +0100
3 +++ linux-2.6.23.12.new/drivers/leds/Kconfig    2008-01-11 09:01:19.000000000 +0100
4 @@ -101,6 +101,12 @@
5           outputs. To be useful the particular board must have LEDs
6           and they must be connected to the GPIO lines.
7  
8 +config LEDS_RB500
9 +       tristate "LED Support for RB5xx boards"
10 +       depends LEDS_CLASS && MIKROTIK_RB500
11 +       help
12 +         This option enables support for the yellow user LED on RB5xx boards.
13 +
14  comment "LED Triggers"
15  
16  config LEDS_TRIGGERS
17 diff -urN linux-2.6.23.12/drivers/leds/Makefile linux-2.6.23.12.new/drivers/leds/Makefile
18 --- linux-2.6.23.12/drivers/leds/Makefile       2007-12-18 22:55:57.000000000 +0100
19 +++ linux-2.6.23.12.new/drivers/leds/Makefile   2008-01-11 09:00:49.000000000 +0100
20 @@ -17,6 +17,7 @@
21  obj-$(CONFIG_LEDS_H1940)               += leds-h1940.o
22  obj-$(CONFIG_LEDS_COBALT)              += leds-cobalt.o
23  obj-$(CONFIG_LEDS_GPIO)                        += leds-gpio.o
24 +obj-$(CONFIG_LEDS_RB500)               += leds-rb500.o
25  
26  # LED Triggers
27  obj-$(CONFIG_LEDS_TRIGGER_TIMER)       += ledtrig-timer.o