From a4445215e06ee3056427effbef617f4525ee1836 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 24 Jan 2015 00:47:13 +0100 Subject: [PATCH] vlan: reset device state on init Signed-off-by: Felix Fietkau --- vlan.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.25.1