Revert "vlan: reset device state on init"
authorFelix Fietkau <nbd@openwrt.org>
Sat, 24 Jan 2015 14:17:02 +0000 (15:17 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 24 Jan 2015 14:17:02 +0000 (15:17 +0100)
This is causing a regression with some VLAN configurations

This reverts commit a4445215e06ee3056427effbef617f4525ee1836.

vlan.c

diff --git a/vlan.c b/vlan.c
index 7424aa82bd429812292fb2ae4ede10b1f4a1ac14..354e12f661d662bcf1d37200239d2caeb6b255b2 100644 (file)
--- a/vlan.c
+++ b/vlan.c
@@ -139,9 +139,6 @@ static struct device *get_vlan_device(struct device *dev, int id, bool create)
        vldev->dep.cb = vlan_dev_cb;
        device_add_user(&vldev->dep, dev);
 
-       vldev->set_state(dev, false);
-       system_vlan_del(dev);
-
        return &vldev->dev;
 }