[PATCH 3/7] state: make state_release() non static
Marc Kleine-Budde
mkl at pengutronix.de
Wed May 13 03:12:28 PDT 2015
Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>
---
common/state.c | 2 +-
include/state.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/common/state.c b/common/state.c
index 5642f0d41855..66620a892074 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 d321451e1490..116ec6301c1c 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);
--
2.1.4
More information about the barebox
mailing list