[kernel] 2.6.26: fix gpio_dev compile error
[openwrt.git] / target / linux / ixp4xx / patches-2.6.24 / 111-pronghorn_metro_mac_plat_info.patch
1 Index: linux-2.6.24.7/arch/arm/mach-ixp4xx/pronghornmetro-setup.c
2 ===================================================================
3 --- linux-2.6.24.7.orig/arch/arm/mach-ixp4xx/pronghornmetro-setup.c
4 +++ linux-2.6.24.7/arch/arm/mach-ixp4xx/pronghornmetro-setup.c
5 @@ -104,9 +104,36 @@ static struct platform_device pronghornm
6 .resource = pronghornmetro_pata_resources,
7 };
8
9 +/* Built-in 10/100 Ethernet MAC interfaces */
10 +static struct eth_plat_info pronghornmetro_plat_eth[] = {
11 + {
12 + .phy = 0,
13 + .rxq = 3,
14 + .txreadyq = 20,
15 + }, {
16 + .phy = 1,
17 + .rxq = 4,
18 + .txreadyq = 21,
19 + }
20 +};
21 +
22 +static struct platform_device pronghornmetro_eth[] = {
23 + {
24 + .name = "ixp4xx_eth",
25 + .id = IXP4XX_ETH_NPEB,
26 + .dev.platform_data = pronghornmetro_plat_eth,
27 + }, {
28 + .name = "ixp4xx_eth",
29 + .id = IXP4XX_ETH_NPEC,
30 + .dev.platform_data = pronghornmetro_plat_eth + 1,
31 + }
32 +};
33 +
34 static struct platform_device *pronghornmetro_devices[] __initdata = {
35 &pronghornmetro_flash,
36 &pronghornmetro_uart,
37 + &pronghornmetro_eth[0],
38 + &pronghornmetro_eth[1],
39 };
40
41 static void __init pronghornmetro_init(void)
This page took 0.050293 seconds and 5 git commands to generate.