diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-01-24 00:47:13 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-01-24 00:47:13 +0100 |
commit | a4445215e06ee3056427effbef617f4525ee1836 (patch) | |
tree | a34a74c0d74c1c576409be102b7ba2d464757baf /vlan.c | |
parent | 02f05f3755fec2ee8c078b13ad1570bc941a8f72 (diff) |
vlan: reset device state on init
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'vlan.c')
-rw-r--r-- | vlan.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -139,6 +139,9 @@ 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; } |