diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-11-14 01:58:23 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@linaro.org> | 2014-11-18 11:59:06 -0500 |
commit | a0212ae0be5ba10b6e01b7121f86e391ae1927ae (patch) | |
tree | 3584f075f85f3b229c459be308d305c48a42ba26 /drivers/of | |
parent | 43c0767e17ac70e494b6a381b3a20be6a1a75c70 (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>
Diffstat (limited to 'drivers/of')
-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 e02828fa3acd..78f02f65fc48 100644 --- a/drivers/of/address.c +++ b/drivers/of/address.c | |||
@@ -477,7 +477,7 @@ static int of_translate_one(struct device_node *parent, struct of_bus *bus, | |||
477 | ranges = of_get_property(parent, rprop, &rlen); | 477 | ranges = of_get_property(parent, rprop, &rlen); |
478 | #if !defined(CONFIG_PPC) | 478 | #if !defined(CONFIG_PPC) |
479 | if (ranges == NULL) { | 479 | if (ranges == NULL) { |
480 | pr_err("OF: no ranges; cannot translate\n"); | 480 | pr_debug("OF: no ranges; cannot translate\n"); |
481 | return 1; | 481 | return 1; |
482 | } | 482 | } |
483 | #endif /* !defined(CONFIG_PPC) */ | 483 | #endif /* !defined(CONFIG_PPC) */ |