diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-11-14 17:58:23 +1100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-02-20 23:41:25 +0900 |
commit | fb7fc6199688143c0f755021376f021afb8d06d0 (patch) | |
tree | eddaf3585159c031b70b2fe45c7ddf8098aee629 | |
parent | 07a298bd5a35aff2ae1f12f99f9694ab4c4c67fc (diff) |
of/address: Don't throw errors on absent ranges properties
The core always tries to translate any "reg" property to construct the platform
device names. This results in a pile of "OF: no ranges; cannot translate" errors
in dmesg whenever we expose things like i2c devices that cannot directly translate
to the MMIO space.
Turn this into a pr_debug instead
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Grant Likely <grant.likely@linaro.org>
(cherry picked from commit a0212ae0be5ba10b6e01b7121f86e391ae1927ae)
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/of/address.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/address.c b/drivers/of/address.c index 14e40a936089..9c5270d4b759 100644 --- a/drivers/of/address.c +++ b/drivers/of/address.c @@ -428,7 +428,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) */ |