From: Benjamin Herrenschmidt Date: Fri, 14 Nov 2014 06:58:23 +0000 (+1100) Subject: of/address: Don't throw errors on absent ranges properties X-Git-Tag: v3.19-rc1~120^2~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a0212ae0be5ba10b6e01b7121f86e391ae1927ae;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: Grant Likely --- diff --git a/drivers/of/address.c b/drivers/of/address.c index e02828f..78f02f6 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, 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) */