[PATCH 2/7] state: print proper error message, if reg property is not found
Marc Kleine-Budde
mkl at pengutronix.de
Wed May 13 03:12:27 PDT 2015
Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>
---
common/state.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/common/state.c b/common/state.c
index d4ce7313be97..5642f0d41855 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,
--
2.1.4
More information about the barebox
mailing list