summaryrefslogtreecommitdiffstats
path: root/include/of.h
diff options
context:
space:
mode:
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>2013-07-02 20:14:39 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-07-05 08:26:57 +0200
commitcf31688b6a6981bf6e66ec8587d0ccf3dd72a594 (patch)
treef3ac10f4eb4d3a62a80ca3dd4d8c9cf87abc6f8c /include/of.h
parentb73f70bb1ab2d80f741f82eccd2f44cd88eaa215 (diff)
downloadbarebox-cf31688b6a6981bf6e66ec8587d0ccf3dd72a594.tar.gz
barebox-cf31688b6a6981bf6e66ec8587d0ccf3dd72a594.tar.xz
OF: base: rename of_free to of_delete_node
of_free is misleading about the actual purpose of the function. There is already a of_create_node counterpart, so rename of_free to of_create_node and update all users accordingly. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/of.h')
-rw-r--r--include/of.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/of.h b/include/of.h
index f01d8544d4..ebe8e3966b 100644
--- a/include/of.h
+++ b/include/of.h
@@ -139,7 +139,7 @@ extern struct device_node *of_new_node(struct device_node *parent,
const char *name);
extern struct device_node *of_create_node(struct device_node *root,
const char *path);
-extern void of_free(struct device_node *node);
+extern void of_delete_node(struct device_node *node);
extern int of_machine_is_compatible(const char *compat);
extern int of_device_is_compatible(const struct device_node *device,
@@ -508,7 +508,7 @@ static inline struct device_node *of_create_node(struct device_node *root,
return NULL;
}
-static inline void of_free(struct device_node *node)
+static inline void of_delete_node(struct device_node *node)
{
}