From a4445215e06ee3056427effbef617f4525ee1836 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 24 Jan 2015 00:47:13 +0100 Subject: vlan: reset device state on init Signed-off-by: Felix Fietkau --- vlan.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vlan.c') diff --git a/vlan.c b/vlan.c index 354e12f..7424aa8 100644 --- a/vlan.c +++ b/vlan.c @@ -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; } -- cgit v1.2.3