s/cleanup_devices/device_free_all/
authorFelix Fietkau <nbd@openwrt.org>
Fri, 29 Jul 2011 17:21:51 +0000 (19:21 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 29 Jul 2011 17:21:51 +0000 (19:21 +0200)
config.c
device.c
device.h

index 18efe9692980dd08d963dd2e7af5d2f2a3effec9..0f7a6527bd94d02192a8928fcde68dcf255b387e 100644 (file)
--- a/config.c
+++ b/config.c
@@ -165,7 +165,7 @@ config_init_interfaces(const char *name)
                if (!strcmp(s->type, "interface"))
                        config_parse_interface(s);
        }
-       cleanup_devices();
+       device_free_all();
        config_init = false;
 
        start_pending_interfaces();
index 9e0881ae570fdbb340282cf60aed3955fd40da5a..120b1f0a3d009ae08ad377f0fe24643387f645f8 100644 (file)
--- a/device.c
+++ b/device.c
@@ -275,7 +275,7 @@ void remove_device_user(struct device_user *dep)
 }
 
 void
-cleanup_devices(void)
+device_free_all(void)
 {
        struct device *dev, *tmp;
 
index bd5a58122d0a0d97e91265882309e2b30d34a9a9..0406dcf7ac3593cf4ccb29fdb4903d87ccf9119e 100644 (file)
--- a/device.h
+++ b/device.h
@@ -141,7 +141,7 @@ int claim_device(struct device *dev);
 void release_device(struct device *dev);
 int check_device_state(struct device *dev);
 
-void cleanup_devices(void);
+void device_free_all(void);
 
 struct device *get_vlan_device_chain(const char *ifname, bool create);
 struct device *bridge_create(const char *name, struct uci_section *s);