summaryrefslogtreecommitdiff
path: root/arch/sparc/lib/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/lib/board.c')
-rw-r--r--arch/sparc/lib/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/lib/board.c b/arch/sparc/lib/board.c
index b776c21..4f69709 100644
--- a/arch/sparc/lib/board.c
+++ b/arch/sparc/lib/board.c
@@ -88,7 +88,7 @@ ulong monitor_flash_len;
static int init_baudrate(void)
{
char tmp[64]; /* long enough for environment variables */
- int i = getenv_r("baudrate", tmp, sizeof(tmp));
+ int i = getenv_f("baudrate", tmp, sizeof(tmp));
gd->baudrate = (i > 0)
? (int)simple_strtoul(tmp, NULL, 10)