summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2015-05-13 12:12:27 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-05-15 07:01:49 +0200
commit142afe0e302ea34c841f73d9460e3af3c6299273 (patch)
treea6066c1c14c24b76fb6fcaced647ba0455d7b525
parent47056c8cd099cba0e2e9a4a1d7fd9f9161d83a9f (diff)
downloadbarebox-142afe0e302ea34c841f73d9460e3af3c6299273.tar.gz
state: print proper error message, if reg property is not found
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--common/state.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/state.c b/common/state.c
index d4ce7313be..5642f0d418 100644
--- a/common/state.c
+++ b/common/state.c
@@ -512,8 +512,11 @@ static int state_convert_node_variable(struct state *state,
ret = of_property_read_u32_array(node, "reg", start_size,
ARRAY_SIZE(start_size));
- if (ret)
+ if (ret) {
+ dev_err(&state->dev,
+ "%s: reg property not found\n", name);
goto out_free;
+ }
if (start_size[1] != sv->size) {
dev_err(&state->dev,