return dev->type->check_state(dev);
}
-void init_virtual_device(struct device *dev, const struct device_type *type, const char *name)
+void device_init_virtual(struct device *dev, const struct device_type *type, const char *name)
{
assert(dev);
assert(type);
{
int ret;
- init_virtual_device(dev, type, ifname);
+ device_init_virtual(dev, type, ifname);
if (!dev->set_state)
dev->set_state = set_device_state;
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);
+void device_init_virtual(struct device *dev, const struct device_type *type, const char *name);
int device_init(struct device *iface, const struct device_type *type, const char *ifname);
void device_cleanup(struct device *iface);
struct device *device_get(const char *name, bool create);