From b986f4f1ee4881c4c1d81738cf9f0366381f7066 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Wed, 14 Aug 2013 16:12:31 +0200 Subject: remove remaining references of CONFIG_BOARDINFO With this all code uses barebox_get_model() and no longer a compile time generated string. Also this renames barebox_boardinfo() to barebox_get_model() since we are going to add the corresponding _set_ function and 'model' corresponds to the devicetree notion. Signed-off-by: Sascha Hauer --- common/misc.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'common/misc.c') diff --git a/common/misc.c b/common/misc.c index 806649431d..14c33048a9 100644 --- a/common/misc.c +++ b/common/misc.c @@ -126,19 +126,19 @@ EXPORT_SYMBOL(perror); void (*do_execute)(void *func, int argc, char *argv[]); EXPORT_SYMBOL(do_execute); -static const char *boardinfo; +static const char *model; -const char *barebox_boardinfo(void) +const char *barebox_get_model(void) { - if (boardinfo) - return boardinfo; + if (model) + return model; - boardinfo = of_get_model(); - if (boardinfo) - boardinfo = xstrdup(boardinfo); + model = of_get_model(); + if (model) + model = xstrdup(model); else - boardinfo = CONFIG_BOARDINFO; + model = CONFIG_BOARDINFO; - return boardinfo; + return model; } -EXPORT_SYMBOL(barebox_boardinfo); +EXPORT_SYMBOL(barebox_get_model); -- cgit v1.2.3