diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-07-29 19:26:37 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-07-29 19:26:37 +0200 |
commit | d3f710f9c3b70b310fae6cdcceb201767b913d7d (patch) | |
tree | b1d5baef533f072275702a6e501ba22daefff554 | |
parent | 02a1a2d7b59b584e702b87d8aca0f3941b83176d (diff) |
reorder function
-rw-r--r-- | device.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -119,12 +119,6 @@ struct device_hotplug_ops { int (*del)(struct device *main, struct device *member); }; -static inline void -device_free(struct device *dev) -{ - dev->type->free(dev); -} - extern const struct config_param_list device_attr_list; struct device *device_create(struct blob_attr *attr, struct uci_section *s); @@ -141,6 +135,12 @@ int device_claim(struct device *dev); void device_release(struct device *dev); int check_device_state(struct device *dev); +static inline void +device_free(struct device *dev) +{ + dev->type->free(dev); +} + void device_free_all(void); struct device *get_vlan_device_chain(const char *ifname, bool create); |