aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-01-08 20:24:29 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-01-08 20:24:29 +0000
commit792a1fb2c05a03fd77178d0e3a7e6147e33330fc (patch)
treeecbb705a96af203d2febca7bb4bab89099a6b219 /target/linux/generic/files/drivers/net/phy/rtl8366_smi.c
parentc16715f8d2d31f52bbaf888efd3fdb424b7a69bd (diff)
downloadupstream-792a1fb2c05a03fd77178d0e3a7e6147e33330fc.tar.gz
upstream-792a1fb2c05a03fd77178d0e3a7e6147e33330fc.tar.bz2
upstream-792a1fb2c05a03fd77178d0e3a7e6147e33330fc.zip
generic: rtl8366: enable vlans before enabling the ports
SVN-Revision: 24939
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/rtl8366_smi.c')
-rw-r--r--target/linux/generic/files/drivers/net/phy/rtl8366_smi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c b/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c
index f9a332d875..e34c84c97e 100644
--- a/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c
+++ b/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c
@@ -448,7 +448,7 @@ static int rtl8366_set_pvid(struct rtl8366_smi *smi, unsigned port,
return -ENOSPC;
}
-static int rtl8366_enable_vlan(struct rtl8366_smi *smi, int enable)
+int rtl8366_enable_vlan(struct rtl8366_smi *smi, int enable)
{
int err;
@@ -465,6 +465,7 @@ static int rtl8366_enable_vlan(struct rtl8366_smi *smi, int enable)
return err;
}
+EXPORT_SYMBOL_GPL(rtl8366_enable_vlan);
static int rtl8366_enable_vlan4k(struct rtl8366_smi *smi, int enable)
{