static void free_simple_device(struct device *dev)
{
- cleanup_device(dev);
+ device_cleanup(dev);
free(dev);
}
return dev;
}
-void cleanup_device(struct device *dev)
+void device_cleanup(struct device *dev)
{
struct device_user *dep, *tmp;
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);
vldev = container_of(iface, struct vlan_device, dev);
device_remove_user(&vldev->dep);
- cleanup_device(&vldev->dev);
+ device_cleanup(&vldev->dev);
free(vldev);
}