s/get_device/device_get/
[project/netifd.git] / vlan.c
diff --git a/vlan.c b/vlan.c
index b906cd5..208ff73 100644 (file)
--- a/vlan.c
+++ b/vlan.c
@@ -19,7 +19,7 @@ static void free_vlan_if(struct device *iface)
 
        vldev = container_of(iface, struct vlan_device, dev);
        device_remove_user(&vldev->dep);
-       cleanup_device(&vldev->dev);
+       device_cleanup(&vldev->dev);
        free(vldev);
 }
 
@@ -55,10 +55,10 @@ static void vlan_dev_cb(struct device_user *dep, enum device_event ev)
        vldev = container_of(dep, struct vlan_device, dep);
        switch(ev) {
        case DEV_EVENT_ADD:
-               set_device_present(&vldev->dev, true);
+               device_set_present(&vldev->dev, true);
                break;
        case DEV_EVENT_REMOVE:
-               set_device_present(&vldev->dev, false);
+               device_set_present(&vldev->dev, false);
                break;
        default:
                break;
@@ -129,7 +129,7 @@ struct device *get_vlan_device_chain(const char *ifname, bool create)
                return NULL;
 
        s = split_vlan(buf);
-       iface = get_device(buf, create);
+       iface = device_get(buf, create);
        if (!iface && !create)
                goto error;