vldev->id = id;
vlan_dev_set_name(vldev, dev);
- device_init_virtual(&vldev->dev, &vlan_type, NULL);
+ device_init(&vldev->dev, &vlan_type, vldev->dev.ifname);
vldev->dev.default_config = true;
vldev->set_state = vldev->dev.set_state;
vldev->dep.cb = vlan_dev_cb;
device_add_user(&vldev->dep, dev);
- vldev->set_state(dev, false);
- system_vlan_del(dev);
-
return &vldev->dev;
}