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

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Sat Feb 18 10:17:05 CET 2023


Compiling sandbox_defconfig with CONFIG_SPL_MMC=y results in

    drivers/mmc/mmc-uclass.c:211:
    undefined reference to `dev_read_u32_default'

Revert the fraudulent patch.

Fixes: ef79ef21a852 ("dm: core: Don't inline dev_read...() calls with of-platdata")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
---
 include/dm/read.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/dm/read.h b/include/dm/read.h
index 56ac076c9f..ca1c60e079 100644
--- a/include/dm/read.h
+++ b/include/dm/read.h
@@ -30,7 +30,7 @@ static inline const struct device_node *dev_np(const struct udevice *dev)
 }
 #endif
 
-#if !defined(CONFIG_DM_DEV_READ_INLINE) || CONFIG_IS_ENABLED(OF_PLATDATA)
+#ifndef CONFIG_DM_DEV_READ_INLINE
 /**
  * dev_read_u8() - read a 8-bit integer from a device's DT property
  *
-- 
2.38.1



More information about the U-Boot mailing list