From: Marc Kleine-Budde <mkl@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 4/6] state: state_new_from_fdt(): remove unused function
Date: Wed, 6 May 2015 14:51:29 +0200 [thread overview]
Message-ID: <1430916691-12459-4-git-send-email-mkl@pengutronix.de> (raw)
In-Reply-To: <1430916691-12459-1-git-send-email-mkl@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
common/state.c | 21 ---------------------
include/state.h | 1 -
2 files changed, 22 deletions(-)
diff --git a/common/state.c b/common/state.c
index 7f12341bd578..cc44cecb484f 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;
}
diff --git a/include/state.h b/include/state.h
index e96d3bfb2e4f..d321451e1490 100644
--- a/include/state.h
+++ b/include/state.h
@@ -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,
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_by_name(const char *name);
--
2.1.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2015-05-06 12:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-06 12:51 [PATCH 1/6] fdt: of_unflatten_dtb(): remove left over "root" argument from inline doc Marc Kleine-Budde
2015-05-06 12:51 ` [PATCH 2/6] state: documentation: add anchor so that state can be referenced later Marc Kleine-Budde
2015-05-06 12:51 ` [PATCH 3/6] state: state_uint32_create: use %u to print unsigned variable Marc Kleine-Budde
2015-05-06 12:51 ` Marc Kleine-Budde [this message]
2015-05-06 12:51 ` [PATCH 5/6] watchdog: add static inline no-ops if WD is disabled Marc Kleine-Budde
2015-05-06 12:51 ` [PATCH 6/6] startup: introduce postenvironment_initcall Marc Kleine-Budde
2015-05-07 7:15 ` [PATCH 1/6] fdt: of_unflatten_dtb(): remove left over "root" argument from inline doc Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1430916691-12459-4-git-send-email-mkl@pengutronix.de \
--to=mkl@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox