projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
02a1a2d
)
reorder function
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 29 Jul 2011 17:26:37 +0000
(19:26 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 29 Jul 2011 17:26:37 +0000
(19:26 +0200)
device.h
patch
|
blob
|
history
diff --git
a/device.h
b/device.h
index
7fc4975
..
733763f
100644
(file)
--- a/
device.h
+++ b/
device.h
@@
-119,12
+119,6
@@
struct device_hotplug_ops {
int (*del)(struct device *main, struct device *member);
};
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);
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);
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);
void device_free_all(void);
struct device *get_vlan_device_chain(const char *ifname, bool create);