1 Index: linux-2.6.23.17/arch/arm/mach-ixp4xx/avila-setup.c
2 ===================================================================
3 --- linux-2.6.23.17.orig/arch/arm/mach-ixp4xx/avila-setup.c
4 +++ linux-2.6.23.17/arch/arm/mach-ixp4xx/avila-setup.c
5 @@ -183,6 +183,23 @@ 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 = {
29 @@ -193,6 +210,9 @@ static struct platform_device *avila_dev
30 #ifdef CONFIG_LEDS_IXP4XX
33 +#ifdef CONFIG_GPIO_DEVICE
38 static char avila_rtc_probe[] __initdata = "rtc-ds1672.probe=0,0x68 ";
39 Index: linux-2.6.23.17/include/asm-arm/arch-ixp4xx/avila.h
40 ===================================================================
41 --- linux-2.6.23.17.orig/include/asm-arm/arch-ixp4xx/avila.h
42 +++ linux-2.6.23.17/include/asm-arm/arch-ixp4xx/avila.h
46 #define AVILA_LED_USER_GPIO 3
48 +/* gpio mask used by platform device */
49 +#define AVILA_GPIO_MASK (1 << 1) | (1 << 3) | (1 << 5) | (1 << 7) | (1 << 9)