[atheros] use stats from net_device structure
[openwrt.git] / target / linux / ixp4xx / patches-2.6.24 / 161-wg302v1_mac_plat_info.patch
1 diff -Nur linux-2.6.23.12/arch/arm/mach-ixp4xx/wg302v1-setup.c linux-2.6.23.12-owrt/arch/arm/mach-ixp4xx/wg302v1-setup.c
2 --- linux-2.6.23.12/arch/arm/mach-ixp4xx/wg302v1-setup.c 2008-01-14 23:06:42.000000000 +0100
3 +++ linux-2.6.23.12-owrt/arch/arm/mach-ixp4xx/wg302v1-setup.c 2008-01-14 23:03:16.000000000 +0100
4 @@ -77,9 +77,27 @@
5 .resource = &wg302v1_uart_resource,
6 };
7
8 +/* Built-in 10/100 Ethernet MAC interfaces */
9 +static struct eth_plat_info wg302_plat_eth[] = {
10 + {
11 + .phy = 30,
12 + .rxq = 3,
13 + .txreadyq = 20,
14 + }
15 +};
16 +
17 +static struct platform_device wg302_eth[] = {
18 + {
19 + .name = "ixp4xx_eth",
20 + .id = IXP4XX_ETH_NPEB,
21 + .dev.platform_data = wg302_plat_eth,
22 + }
23 +};
24 +
25 static struct platform_device *wg302v1_devices[] __initdata = {
26 &wg302v1_flash,
27 &wg302v1_uart,
28 + &wg302_eth[0],
29 };
30
31 static void __init wg302v1_init(void)
This page took 0.043616 seconds and 5 git commands to generate.