From: Felix Fietkau Date: Fri, 29 Jul 2011 17:25:45 +0000 (+0200) Subject: s/init_virtual_device/device_init_virtual/ X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c4c609517db5f7a33e4d26809dd67620ba77e795;p=project%2Fnetifd.git s/init_virtual_device/device_init_virtual/ --- diff --git a/device.c b/device.c index 2df4539..6fa697b 100644 --- a/device.c +++ b/device.c @@ -164,7 +164,7 @@ int check_device_state(struct device *dev) 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); @@ -181,7 +181,7 @@ int device_init(struct device *dev, const struct device_type *type, const char * { int ret; - init_virtual_device(dev, type, ifname); + device_init_virtual(dev, type, ifname); if (!dev->set_state) dev->set_state = set_device_state; diff --git a/device.h b/device.h index d9b9012..3c0c002 100644 --- a/device.h +++ b/device.h @@ -129,7 +129,7 @@ extern const struct config_param_list device_attr_list; 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);