summaryrefslogtreecommitdiffhomepage
path: root/device.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-07-29 19:25:37 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-07-29 19:25:37 +0200
commitcd8b6676df948be45586b606cb32538b81e43f40 (patch)
treeae70d7ef5e3db104b5703e758a6148e9c12b935b /device.c
parent0b461898555d81efe1b57ec1cd9b9b1529cecd0f (diff)
s/init_device/device_init/
Diffstat (limited to 'device.c')
-rw-r--r--device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/device.c b/device.c
index 3d787f9..2df4539 100644
--- a/device.c
+++ b/device.c
@@ -177,7 +177,7 @@ void init_virtual_device(struct device *dev, const struct device_type *type, con
dev->type = type;
}
-int init_device(struct device *dev, const struct device_type *type, const char *ifname)
+int device_init(struct device *dev, const struct device_type *type, const char *ifname)
{
int ret;
@@ -218,7 +218,7 @@ struct device *device_get(const char *name, bool create)
return NULL;
dev = calloc(1, sizeof(*dev));
- init_device(dev, &simple_type, name);
+ device_init(dev, &simple_type, name);
return dev;
}