1 --- a/arch/arm/mach-ixp4xx/avila-setup.c
2 +++ b/arch/arm/mach-ixp4xx/avila-setup.c
3 @@ -239,10 +239,28 @@ static struct platform_device avila_latc
4 .dev.platform_data = &avila_latch_leds_data,
7 +static struct resource avila_gpio_resources[] = {
10 + /* FIXME: gpio mask should be model specific */
11 + .start = AVILA_GPIO_MASK,
12 + .end = AVILA_GPIO_MASK,
17 +static struct platform_device avila_gpio = {
20 + .num_resources = ARRAY_SIZE(avila_gpio_resources),
21 + .resource = avila_gpio_resources,
24 static struct platform_device *avila_devices[] __initdata = {
32 static void __init avila_gw23xx_setup(void)
33 --- a/include/asm-arm/arch-ixp4xx/avila.h
34 +++ b/include/asm-arm/arch-ixp4xx/avila.h
37 #define AVILA_GW23XX_LED_USER_GPIO 3
38 #define AVILA_GW23X7_LED_USER_GPIO 4
40 +/* gpio mask used by platform device */
41 +#define AVILA_GPIO_MASK (1 << 1) | (1 << 3) | (1 << 5) | (1 << 7) | (1 << 9)