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 18efe96..0f7a652 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);
        }
                if (!strcmp(s->type, "interface"))
                        config_parse_interface(s);
        }
-       cleanup_devices();
+       device_free_all();
        config_init = false;
 
        start_pending_interfaces();
        config_init = false;
 
        start_pending_interfaces();
index 9e0881a..120b1f0 100644 (file)
--- a/device.c
+++ b/device.c
@@ -275,7 +275,7 @@ void remove_device_user(struct device_user *dep)
 }
 
 void
 }
 
 void
-cleanup_devices(void)
+device_free_all(void)
 {
        struct device *dev, *tmp;
 
 {
        struct device *dev, *tmp;
 
index bd5a581..0406dcf 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 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);
 
 struct device *get_vlan_device_chain(const char *ifname, bool create);
 struct device *bridge_create(const char *name, struct uci_section *s);