dm: core: Provide fallbacks for ofnode_conf_read_...
authorSean Anderson <sean.anderson@seco.com>
Mon, 28 Mar 2022 22:14:37 +0000 (18:14 -0400)
committerSimon Glass <sjg@chromium.org>
Tue, 28 Jun 2022 02:09:51 +0000 (03:09 +0100)
commit8b52f237f0f8ae63c930fa8459c39ab87367bad1
tree30b5ce956c1f151837c796093b6646c6f00612c4
parent24057fe0a8f70ae872da0a8f4889fe7b8cfa09db
dm: core: Provide fallbacks for ofnode_conf_read_...

Because fdt_get_config_str et al. were moved/renamed to
ofnode_conf_read_str, they now depend on CONFIG_DM as well as
CONFIG_OF_CONTROL. Add some fallback implementations, preventing a
linker error when CONFIG_SPL_OF_CONTROL and CONFIG_SPL_ENV_IS_IN_MMC are
enabled and CONFIG_SPL_DM is disabled.

Fixes: 7de8bd03c3 ("treewide: fdt: Move fdt_get_config_... to ofnode_conf_read...")
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
include/dm/ofnode.h