X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=common%2Fboard_info.c;h=a392bece62c695aa25b4235d5974532fd5bc72d8;hb=634931fea542fc59cf7537b6c2c163942a6ccd15;hp=bd5dcfa066358c2cc44ce5d19fcc3e77d555cd09;hpb=a9ad18c9d5fe2554753b0f9a52adfd5ebce61147;p=oweals%2Fu-boot.git diff --git a/common/board_info.c b/common/board_info.c index bd5dcfa066..a392bece62 100644 --- a/common/board_info.c +++ b/common/board_info.c @@ -1,9 +1,7 @@ -/* - * SPDX-License-Identifier: GPL-2.0+ - */ +// SPDX-License-Identifier: GPL-2.0+ #include -#include +#include #include int __weak checkboard(void) @@ -15,9 +13,9 @@ int __weak checkboard(void) * If the root node of the DTB has a "model" property, show it. * Then call checkboard(). */ -int show_board_info(void) +int __weak show_board_info(void) { -#if defined(CONFIG_OF_CONTROL) && !defined(CONFIG_CUSTOM_BOARDINFO) +#ifdef CONFIG_OF_CONTROL DECLARE_GLOBAL_DATA_PTR; const char *model;