s/cleanup_device/device_cleanup/
[project/netifd.git] / vlan.c
diff --git a/vlan.c b/vlan.c
index b906cd5..88604d3 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;