[PATCH 05/11] dm: core: Don't inline dev_read...() calls with of-platdata

Simon Glass sjg at chromium.org
Thu Jan 21 21:57:10 CET 2021

At present if these calls are used with of-platdata, a confusing error is
produced, referring to a function not actually called by the code causing
the problem.

Fix this by not inlining, so that the error mentions the dev_read_...()
function and it is more obvious what is going on.

Signed-off-by: Simon Glass <sjg at chromium.org>

 include/dm/read.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/dm/read.h b/include/dm/read.h
index c875e11a132..f6f8b875d1c 100644
--- a/include/dm/read.h
+++ b/include/dm/read.h
@@ -30,8 +30,7 @@ static inline const struct device_node *dev_np(const struct udevice *dev)
  * dev_read_u32() - read a 32-bit integer from a device's DT property

More information about the U-Boot mailing list