state: state_new_from_fdt(): remove unused function
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Applied-Upstream: next, commit:9a6dc0376add
This commit is contained in:
parent
f56fea8e5a
commit
618d712f91
|
@ -678,27 +678,6 @@ struct state *state_new_from_node(const char *name, struct device_node *node)
|
||||||
return ERR_PTR(ret);
|
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;
|
return state;
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,6 @@ int state_backend_dtb_file(struct state *state, const char *path);
|
||||||
int state_backend_raw_file(struct state *state, const char *path,
|
int state_backend_raw_file(struct state *state, const char *path,
|
||||||
off_t offset, size_t size);
|
off_t offset, size_t size);
|
||||||
|
|
||||||
struct state *state_new_from_fdt(const char *name, void *fdt);
|
|
||||||
struct state *state_new_from_node(const char *name, struct device_node *node);
|
struct state *state_new_from_node(const char *name, struct device_node *node);
|
||||||
|
|
||||||
struct state *state_by_name(const char *name);
|
struct state *state_by_name(const char *name);
|
||||||
|
|
Loading…
Reference in New Issue