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;
return err;
}
+EXPORT_SYMBOL_GPL(rtl8366_enable_vlan);
static int rtl8366_enable_vlan4k(struct rtl8366_smi *smi, int enable)
{
if (err) {
dev_err(smi->parent, "VLAN initialization failed, err=%d\n",
err);
- goto err_disable_hw;
+ goto err_free_sck;
}
err = rtl8366_enable_all_ports(smi, 1);
if (err)
- goto err_disable_hw;
+ goto err_free_sck;
err = rtl8366_smi_mii_init(smi);
if (err)