s/add_device_user/device_add_user/
[project/netifd.git] / vlan.c
diff --git a/vlan.c b/vlan.c
index 3de1121..b906cd5 100644 (file)
--- a/vlan.c
+++ b/vlan.c
@@ -18,7 +18,7 @@ static void free_vlan_if(struct device *iface)
        struct vlan_device *vldev;
 
        vldev = container_of(iface, struct vlan_device, dev);
-       remove_device_user(&vldev->dep);
+       device_remove_user(&vldev->dep);
        cleanup_device(&vldev->dev);
        free(vldev);
 }
@@ -100,12 +100,12 @@ static struct device *get_vlan_device(struct device *dev, int id, bool create)
        vldev->id = id;
 
        vldev->dep.cb = vlan_dev_cb;
-       add_device_user(&vldev->dep, dev);
+       device_add_user(&vldev->dep, dev);
 
        return &vldev->dev;
 }
 
-static inline char *split_vlan(char *s)
+static char *split_vlan(char *s)
 {
        s = strchr(s, '.');
        if (!s)