diff options
-rw-r--r-- | device.c | 4 | ||||
-rw-r--r-- | device.h | 2 | ||||
-rw-r--r-- | vlan.c | 2 |
3 files changed, 4 insertions, 4 deletions
@@ -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; @@ -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); @@ -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); } |