summaryrefslogtreecommitdiffstats
path: root/common/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/misc.c')
-rw-r--r--common/misc.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/common/misc.c b/common/misc.c
index 8066494..14c3304 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);