1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

[adm5120] add support for board specific vlan matrix, should fix #2132

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8309 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg
2007-08-01 16:54:51 +00:00
parent cb8ec9bac2
commit a5e3f9b197
12 changed files with 123 additions and 53 deletions

View File

@@ -82,8 +82,13 @@ static int __init adm5120_board_setup(void)
memcpy(&adm5120_board_name, board->name, ADM5120_BOARD_NAMELEN);
adm5120_board_reset = board->board_reset;
if (board->num_eth_ports > 0)
adm5120_eth_num_ports = board->num_eth_ports;
if (board->eth_num_ports > 0)
adm5120_eth_num_ports = board->eth_num_ports;
if (board->eth_vlans)
memcpy(adm5120_eth_vlans, board->eth_vlans,
sizeof(adm5120_eth_vlans));
if (board->board_setup)
board->board_setup();