summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--device.c4
-rw-r--r--device.h2
-rw-r--r--vlan.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/device.c b/device.c
index 61b50bc..a71d908 100644
--- a/device.c
+++ b/device.c
@@ -98,7 +98,7 @@ static void __init dev_init(void)
static void free_simple_device(struct device *dev)
{
- cleanup_device(dev);
+ device_cleanup(dev);
free(dev);
}
@@ -223,7 +223,7 @@ struct device *get_device(const char *name, bool create)
return dev;
}
-void cleanup_device(struct device *dev)
+void device_cleanup(struct device *dev)
{
struct device_user *dep, *tmp;
diff --git a/device.h b/device.h
index dd7e114..33278c9 100644
--- a/device.h
+++ b/device.h
@@ -131,7 +131,7 @@ struct device *device_create(struct blob_attr *attr, struct uci_section *s);
void init_virtual_device(struct device *dev, const struct device_type *type, const char *name);
int init_device(struct device *iface, const struct device_type *type, const char *ifname);
-void cleanup_device(struct device *iface);
+void device_cleanup(struct device *iface);
struct device *get_device(const char *name, bool create);
void device_add_user(struct device_user *dep, struct device *iface);
void device_remove_user(struct device_user *dep);
diff --git a/vlan.c b/vlan.c
index ce9d2d7..88604d3 100644
--- 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);
}