1 --- a/arch/arm/mach-orion5x/wnr854t-setup.c
2 +++ b/arch/arm/mach-orion5x/wnr854t-setup.c
4 #include <linux/mtd/physmap.h>
5 #include <linux/mv643xx_eth.h>
6 #include <linux/ethtool.h>
8 #include <asm/mach-types.h>
10 #include <asm/mach/arch.h>
11 @@ -97,6 +98,15 @@ static struct mv643xx_eth_platform_data
12 .duplex = DUPLEX_FULL,
15 +static struct dsa_platform_data wnr854t_switch_data = {
16 + .port_names[0] = "lan3",
17 + .port_names[1] = "lan4",
18 + .port_names[2] = "wan",
19 + .port_names[3] = "cpu",
20 + .port_names[5] = "lan1",
21 + .port_names[7] = "lan2",
24 static void __init wnr854t_init(void)
27 @@ -110,6 +120,7 @@ static void __init wnr854t_init(void)
28 * Configure peripherals.
30 orion5x_eth_init(&wnr854t_eth_data);
31 + orion5x_eth_switch_init(&wnr854t_switch_data, NO_IRQ);
34 orion5x_setup_dev_boot_win(WNR854T_NOR_BOOT_BASE,