Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a0212ae0 authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by Grant Likely
Browse files

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: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
parent 43c0767e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) */