summaryrefslogtreecommitdiffhomepage
path: root/interface.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-07-29 19:24:31 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-07-29 19:24:31 +0200
commit8c7ee052813ae68490b230c657a4a36700654ce5 (patch)
tree3943b3d32ecaf71edfa7b5074478660f2c8d5b95 /interface.c
parenta9030987750fefa9152539edeb44d5dd0a22cbcf (diff)
s/add_device_user/device_add_user/
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/interface.c b/interface.c
index 9fa3799..95ee8ea 100644
--- a/interface.c
+++ b/interface.c
@@ -238,7 +238,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);
if (dev)
- add_device_user(&iface->main_dev, dev);
+ device_add_user(&iface->main_dev, dev);
}
return iface;
@@ -290,7 +290,7 @@ interface_add_link(struct interface *iface, struct device *dev)
if (iface->main_dev.dev)
interface_remove_link(iface, NULL);
- add_device_user(&iface->main_dev, dev);
+ device_add_user(&iface->main_dev, dev);
return 0;
}