reorder function
[project/netifd.git] / interface.c
index 95ee8ea..a1e3004 100644 (file)
@@ -91,7 +91,7 @@ static void
 mark_interface_down(struct interface *iface)
 {
        interface_del_ctx_addr(iface, NULL);
-       release_device(iface->main_dev.dev);
+       device_release(iface->main_dev.dev);
        iface->state = IFS_DOWN;
 }
 
@@ -103,7 +103,7 @@ __set_interface_up(struct interface *iface)
        if (iface->state != IFS_DOWN)
                return 0;
 
-       ret = claim_device(iface->main_dev.dev);
+       ret = device_claim(iface->main_dev.dev);
        if (ret)
                return ret;
 
@@ -236,7 +236,7 @@ alloc_interface(const char *name, struct uci_section *s, struct blob_attr *attr)
        }
 
        if ((cur = tb[IFACE_ATTR_IFNAME])) {
-               dev = get_device(blobmsg_data(cur), true);
+               dev = device_get(blobmsg_data(cur), true);
                if (dev)
                        device_add_user(&iface->main_dev, dev);
        }