summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2015-05-13 12:12:28 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-05-15 07:01:49 +0200
commit0f56f0c5a12a0d9564c17ee901056dd4f69650cd (patch)
treef233a8d2c25abc0b012f0f084041fea721d0cf46
parent142afe0e302ea34c841f73d9460e3af3c6299273 (diff)
downloadbarebox-0f56f0c5a12a0d9564c17ee901056dd4f69650cd.tar.gz
state: make state_release() non static
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--common/state.c2
-rw-r--r--include/state.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/common/state.c b/common/state.c
index 5642f0d418..66620a8920 100644
--- a/common/state.c
+++ b/common/state.c
@@ -426,7 +426,7 @@ static struct state *state_new(const char *name)
return state;
}
-static void state_release(struct state *state)
+void state_release(struct state *state)
{
list_del(&state->list);
unregister_device(&state->dev);
diff --git a/include/state.h b/include/state.h
index d321451e14..116ec6301c 100644
--- a/include/state.h
+++ b/include/state.h
@@ -10,6 +10,7 @@ int state_backend_raw_file(struct state *state, const char *path,
off_t offset, size_t size);
struct state *state_new_from_node(const char *name, struct device_node *node);
+void state_release(struct state *state);
struct state *state_by_name(const char *name);
struct state *state_by_node(const struct device_node *node);