[atheros] use stats from net_device structure
[openwrt.git] / target / linux / ixp4xx / patches-2.6.24 / 301-avila_led.patch
1 Index: linux-2.6.24.2/include/asm-arm/arch-ixp4xx/avila.h
2 ===================================================================
3 --- linux-2.6.24.2.orig/include/asm-arm/arch-ixp4xx/avila.h
4 +++ linux-2.6.24.2/include/asm-arm/arch-ixp4xx/avila.h
5 @@ -36,4 +36,5 @@
6 #define AVILA_PCI_INTC_PIN 9
7 #define AVILA_PCI_INTD_PIN 8
8
9 -
10 +/* User LED */
11 +#define AVILA_LED_USER_GPIO 3
12 Index: linux-2.6.24.2/arch/arm/mach-ixp4xx/avila-setup.c
13 ===================================================================
14 --- linux-2.6.24.2.orig/arch/arm/mach-ixp4xx/avila-setup.c
15 +++ linux-2.6.24.2/arch/arm/mach-ixp4xx/avila-setup.c
16 @@ -174,10 +174,31 @@ static struct platform_device avila_eth[
17 }
18 };
19
20 +#ifdef CONFIG_LEDS_IXP4XX
21 +static struct resource avila_led_resources[] = {
22 + {
23 + .name = "user",
24 + .start = AVILA_LED_USER_GPIO,
25 + .end = AVILA_LED_USER_GPIO,
26 + .flags = IXP4XX_GPIO_LOW,
27 + },
28 +};
29 +
30 +static struct platform_device avila_leds = {
31 + .name = "IXP4XX-GPIO-LED",
32 + .id = -1,
33 + .num_resources = ARRAY_SIZE(avila_led_resources),
34 + .resource = avila_led_resources,
35 +};
36 +#endif
37 +
38 static struct platform_device *avila_devices[] __initdata = {
39 &avila_i2c_gpio,
40 &avila_flash,
41 - &avila_uart
42 + &avila_uart,
43 +#ifdef CONFIG_LEDS_IXP4XX
44 + &avila_leds,
45 +#endif
46 };
47
48 static struct platform_device *avila_eth_devices[] = {
This page took 0.039062 seconds and 5 git commands to generate.