summaryrefslogtreecommitdiffhomepage
path: root/vlan.c
diff options
context:
space:
mode:
Diffstat (limited to 'vlan.c')
-rw-r--r--vlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vlan.c b/vlan.c
index 208ff73..4b79799 100644
--- a/vlan.c
+++ b/vlan.c
@@ -92,7 +92,7 @@ static struct device *get_vlan_device(struct device *dev, int id, bool create)
vldev = calloc(1, sizeof(*vldev));
snprintf(vldev->dev.ifname, IFNAMSIZ, "%s.%d", dev->ifname, id);
- init_device(&vldev->dev, &vlan_type, NULL);
+ device_init(&vldev->dev, &vlan_type, NULL);
vldev->set_state = vldev->dev.set_state;
vldev->dev.set_state = vlan_set_device_state;