state: make state_release() non static
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
6a4e286302
commit
b858e28942
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue