diff options
author | Ulrich Ölmann <u.oelmann@pengutronix.de> | 2018-12-18 14:57:39 +0100 |
---|---|---|
committer | Roland Hieber <rhi@pengutronix.de> | 2019-01-07 12:26:50 +0100 |
commit | c795f59a89c2b485ededacba3a2e048409b82a60 (patch) | |
tree | 80d3d53c4db0f0bf92102f43de426ee5557d57f3 | |
parent | 289538a9b21afe60c9edee8b95295ef4cea371ec (diff) | |
download | dt-utils-c795f59a89c2b485ededacba3a2e048409b82a60.tar.gz dt-utils-c795f59a89c2b485ededacba3a2e048409b82a60.tar.xz |
state: do not complain about missing backend-storage-type
This ports the following barebox commit:
| commit 02a0af266e45a936e50454fdc6ae949b5245c3ac
| Author: Sascha Hauer <s.hauer@pengutronix.de>
| Date: Tue May 23 09:31:29 2017 +0200
|
| state: do not complain about missing backend-storage-type
|
| backend-storage-type is irrelevant for mtd devices, so do not
| complain about this option missing. The mtd backend will print
| messages if necessary.
|
| Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
-rw-r--r-- | src/barebox-state/state.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/barebox-state/state.c b/src/barebox-state/state.c index 85fb1da..94c1203 100644 --- a/src/barebox-state/state.c +++ b/src/barebox-state/state.c @@ -571,7 +571,7 @@ struct state *state_new_from_node(struct device_node *node, char *path, struct state *state; int ret = 0; const char *backend_type; - const char *storage_type; + const char *storage_type = NULL; const char *alias; uint32_t stridesize; @@ -616,12 +616,7 @@ struct state *state_new_from_node(struct device_node *node, char *path, stridesize = 0; } - ret = of_property_read_string(node, "backend-storage-type", - &storage_type); - if (ret) { - storage_type = NULL; - dev_info(&state->dev, "No backend-storage-type found, using default.\n"); - } + of_property_read_string(node, "backend-storage-type", &storage_type); ret = state_format_init(state, backend_type, node, alias); if (ret) |