summaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2018-03-16 15:56:58 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-03-19 09:05:40 +0100
commitd84ada844b2fdf99a3b394ded66d9b44f5909f9e (patch)
tree76dd634dc63930852119f869f69707389595139c /drivers/of
parentcad55edfb5838d53ec1eef38abff7be4b8a6143b (diff)
downloadbarebox-d84ada844b2fdf99a3b394ded66d9b44f5909f9e.tar.gz
barebox-d84ada844b2fdf99a3b394ded66d9b44f5909f9e.tar.xz
of: demote "no ranges" message to debug level
There are valid cases where there is no way to translate a OF node to a MMIO address via ranges, so do the same as the Linux kernel and don't print an error message in that case, but make it available as a debug message. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/address.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/address.c b/drivers/of/address.c
index 8018d78bcb..14db080417 100644
--- a/drivers/of/address.c
+++ b/drivers/of/address.c
@@ -314,7 +314,7 @@ static int of_translate_one(struct device_node *parent, struct of_bus *bus,
ranges = of_get_property(parent, rprop, &rlen);
#if !defined(CONFIG_PPC)
if (ranges == NULL) {
- pr_err("OF: no ranges; cannot translate\n");
+ pr_debug("OF: no ranges; cannot translate\n");
return 1;
}
#endif /* !defined(CONFIG_PPC) */