backfire: generic: rtl8366: enable vlans before enabling the ports (backport of r24939)
[openwrt-10.03/.git] / target / linux / generic-2.6 / files / drivers / net / phy / rtl8366_smi.c
index 6a279132e787b3a2f32c5c1810853755d43ba6d7..28e1a8505d4fd490c54f9bee8b0850538bd11561 100644 (file)
@@ -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)
 {