From 0686fe0edf2ec37b109c9b787985858b4b6a6bb7 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 3 Jun 2013 15:04:21 +0200 Subject: add function to get boardinfo string When using devicetrees the boardinfo (or model) can be obtained from the devicetree. Add a function to get the boardinfo so that we have a chance to add information from the devicetree. Signed-off-by: Sascha Hauer --- common/version.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'common/version.c') diff --git a/common/version.c b/common/version.c index d33f4d0078..e21dbbedfa 100644 --- a/common/version.c +++ b/common/version.c @@ -1,7 +1,6 @@ #include #include #include -#include const char version_string[] = "barebox " UTS_RELEASE " " UTS_VERSION "\n"; @@ -9,13 +8,6 @@ EXPORT_SYMBOL(version_string); void barebox_banner (void) { - const char *board; - - board = of_get_model(); - - if (!board) - board = CONFIG_BOARDINFO; - pr_info("\n\n%s\n\n", version_string); - pr_info("Board: %s\n", board); + pr_info("Board: %s\n", barebox_boardinfo()); } -- cgit v1.2.3