1 Index: linux-2.6.21.7/arch/arm/mach-ixp4xx/compex-setup.c
2 ===================================================================
3 --- linux-2.6.21.7.orig/arch/arm/mach-ixp4xx/compex-setup.c
4 +++ linux-2.6.21.7/arch/arm/mach-ixp4xx/compex-setup.c
5 @@ -90,9 +90,57 @@ static struct platform_device compex_uar
6 .resource = compex_uart_resources
9 +static struct resource res_mac0 = {
10 + .start = IXP4XX_EthB_BASE_PHYS,
11 + .end = IXP4XX_EthB_BASE_PHYS + 0x1ff,
12 + .flags = IORESOURCE_MEM,
15 +static struct resource res_mac1 = {
16 + .start = IXP4XX_EthC_BASE_PHYS,
17 + .end = IXP4XX_EthC_BASE_PHYS + 0x1ff,
18 + .flags = IORESOURCE_MEM,
21 +static struct mac_plat_info plat_mac0 = {
30 +static struct mac_plat_info plat_mac1 = {
39 +static struct platform_device mac0 = {
40 + .name = "ixp4xx_mac",
42 + .dev.platform_data = &plat_mac0,
44 + .resource = &res_mac0,
47 +static struct platform_device mac1 = {
48 + .name = "ixp4xx_mac",
50 + .dev.platform_data = &plat_mac1,
52 + .resource = &res_mac1,
55 static struct platform_device *compex_devices[] __initdata = {
63 static void __init compex_init(void)