diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2015-05-06 14:51:29 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-05-15 07:01:25 +0200 |
commit | 880fe656f8fb0982a5e16fe8f3d1941f5ba0f59c (patch) | |
tree | b64d70a5411e61751cd1f2d8b7e80c5f1089aadf /common | |
parent | b5e65942e52646c99d251cbad341395f1b02ed0e (diff) | |
download | barebox-880fe656f8fb0982a5e16fe8f3d1941f5ba0f59c.tar.gz barebox-880fe656f8fb0982a5e16fe8f3d1941f5ba0f59c.tar.xz |
state: state_new_from_fdt(): remove unused function
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/state.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/common/state.c b/common/state.c index 7f12341bd5..cc44cecb48 100644 --- a/common/state.c +++ b/common/state.c @@ -678,27 +678,6 @@ struct state *state_new_from_node(const char *name, struct device_node *node) return ERR_PTR(ret); } - return state; -} - -/* - * state_new_from_fdt - create a new state instance from a fdt binary blob - * - * @name The name of the new state instance - * @fdt The fdt binary blob describing the new state instance - */ -struct state *state_new_from_fdt(const char *name, void *fdt) -{ - struct state *state; - struct device_node *root; - - root = of_unflatten_dtb(fdt); - if (!root) - return ERR_PTR(-EINVAL); - - state = state_new_from_node(name, root); - - of_delete_node(root); return state; } |