diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-09-10 15:11:28 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-09-24 08:00:39 +0200 |
commit | b62aea561142c6974b593301fbec9ed18381cf8d (patch) | |
tree | 04880ab599bed63793d3e9851a6272b92cbe4999 /common/oftree.c | |
parent | 36152c5aa546660c456eee3049c8bb7f0dd2a2ad (diff) | |
download | barebox-b62aea561142c6974b593301fbec9ed18381cf8d.tar.gz barebox-b62aea561142c6974b593301fbec9ed18381cf8d.tar.xz |
of_fix_tree: do not fail when fixup fails
When a device tree fixup fails it is worth printing a warning, but
we should not fail booting.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/oftree.c')
-rw-r--r-- | common/oftree.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/common/oftree.c b/common/oftree.c index cafe46c469..d408f14e66 100644 --- a/common/oftree.c +++ b/common/oftree.c @@ -189,11 +189,9 @@ int of_fix_tree(struct device_node *node) list_for_each_entry(of_fixup, &of_fixup_list, list) { ret = of_fixup->fixup(node, of_fixup->context); - if (ret) { - pr_err("Failed to fixup node in %pS: %s\n", + if (ret) + pr_warn("Failed to fixup node in %pS: %s\n", of_fixup->fixup, strerror(-ret)); - return ret; - } } return 0; |