]> git.baikalelectronics.ru Git - uboot.git/commit
dm: Avoid using #ifdef for CONFIG_OF_LIVE
authorSimon Glass <sjg@chromium.org>
Sat, 3 Oct 2020 15:25:22 +0000 (09:25 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Oct 2020 20:42:17 +0000 (14:42 -0600)
commit71199cc026775859a75943fb4c70b789e4ab0888
tree85eaeea9428ceb50ce9579f87edf49e442447a22
parentecac6250d491c7336d3bd6744a64c4b2887b3c36
dm: Avoid using #ifdef for CONFIG_OF_LIVE

At present this option results in a number of #ifdefs due to the presence
or absence of the global_data of_root member.

Add a few macros to global_data.h to work around this. Update the code
accordingly.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/board_r.c
drivers/core/Makefile
drivers/core/root.c
include/asm-generic/global_data.h
include/dm/of.h
test/dm/test-main.c