summaryrefslogtreecommitdiffstats
path: root/common/version.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-06-03 15:04:21 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-06-24 21:39:07 +0200
commit0686fe0edf2ec37b109c9b787985858b4b6a6bb7 (patch)
tree9c2365123b155f3fbfd4f06af9dcbccb7a224f25 /common/version.c
parenta34a6f836facbecc9f13edcb6794bb6ee0cae02c (diff)
downloadbarebox-0686fe0edf2ec37b109c9b787985858b4b6a6bb7.tar.gz
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 <s.hauer@pengutronix.de>
Diffstat (limited to 'common/version.c')
-rw-r--r--common/version.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/common/version.c b/common/version.c
index d33f4d0..e21dbbe 100644
--- a/common/version.c
+++ b/common/version.c
@@ -1,7 +1,6 @@
#include <common.h>
#include <generated/compile.h>
#include <generated/utsrelease.h>
-#include <of.h>
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());
}