1 Index: linux-2.6.24.2/arch/arm/mach-ixp4xx/avila-setup.c
2 ===================================================================
3 --- linux-2.6.24.2.orig/arch/arm/mach-ixp4xx/avila-setup.c
4 +++ linux-2.6.24.2/arch/arm/mach-ixp4xx/avila-setup.c
5 @@ -192,6 +192,24 @@ static struct platform_device avila_leds
9 +#ifdef CONFIG_GPIO_DEVICE
10 +static struct resource avila_gpio_resources[] = {
13 + .start = AVILA_GPIO_MASK,
14 + .end = AVILA_GPIO_MASK,
19 +static struct platform_device avila_gpio = {
22 + .num_resources = ARRAY_SIZE(avila_gpio_resources),
23 + .resource = avila_gpio_resources,
27 static struct platform_device *avila_devices[] __initdata = {
30 @@ -199,6 +217,9 @@ static struct platform_device *avila_dev
31 #ifdef CONFIG_LEDS_IXP4XX
34 +#ifdef CONFIG_GPIO_DEVICE
39 static struct platform_device *avila_eth_devices[] = {
40 Index: linux-2.6.24.2/include/asm-arm/arch-ixp4xx/avila.h
41 ===================================================================
42 --- linux-2.6.24.2.orig/include/asm-arm/arch-ixp4xx/avila.h
43 +++ linux-2.6.24.2/include/asm-arm/arch-ixp4xx/avila.h
47 #define AVILA_LED_USER_GPIO 3
49 +/* gpio mask used by platform device */
50 +#define AVILA_GPIO_MASK (1 << 1) | (1 << 3) | (1 << 5) | (1 << 7) | (1 << 9)