1 --- a/arch/arm/mach-ixp4xx/cambria-setup.c
2 +++ b/arch/arm/mach-ixp4xx/cambria-setup.c
3 @@ -214,6 +214,21 @@ static struct platform_device cambria_gp
4 .dev.platform_data = &cambria_gpio_leds_data,
7 +static struct resource cambria_gpio_resources[] = {
14 +static struct platform_device cambria_gpio = {
17 + .num_resources = ARRAY_SIZE(cambria_gpio_resources),
18 + .resource = cambria_gpio_resources,
23 static struct latch_led cambria_latch_leds[] = {
25 @@ -337,6 +352,11 @@ static void __init cambria_gw2350_setup(
26 cambria_optional_uart_data[1].membase = (void __iomem *)ioremap(0x53FF0000, 0x0fff);
27 cambria_optional_uart_data[1].irq = IRQ_IXP4XX_GPIO4;
29 + cambria_gpio_resources[0].start = (1 << 0) | (1 << 1) | (1 << 2) | (1 << 3) | (1 << 4) |\
30 + (1 << 5) | (1 << 8) | (1 << 9) | (1 << 12);
31 + cambria_gpio_resources[0].end = cambria_gpio_resources[0].start;
33 + platform_device_register(&cambria_gpio);
34 platform_device_register(&cambria_optional_uart);
35 platform_device_register(&cambria_npec_device);
36 platform_device_register(&cambria_npea_device);
37 @@ -363,6 +383,10 @@ static void __init cambria_gw2358_setup(
38 cambria_optional_uart_data[1].membase = (void __iomem *)ioremap(0x53F80000, 0x0fff);
39 cambria_optional_uart_data[1].irq = IRQ_IXP4XX_GPIO4;
41 + cambria_gpio_resources[0].start = (1 << 14);
42 + cambria_gpio_resources[0].end = cambria_gpio_resources[0].start;
44 + platform_device_register(&cambria_gpio);
45 platform_device_register(&cambria_optional_uart);
47 platform_device_register(&cambria_npec_device);