summaryrefslogtreecommitdiff
path: root/arch/avr32/lib/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/avr32/lib/board.c')
-rw-r--r--arch/avr32/lib/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/avr32/lib/board.c b/arch/avr32/lib/board.c
index 254aecff510..9e741d22e2c 100644
--- a/arch/avr32/lib/board.c
+++ b/arch/avr32/lib/board.c
@@ -102,7 +102,7 @@ static int init_baudrate(void)
char tmp[64];
int i;
- i = getenv_r("baudrate", tmp, sizeof(tmp));
+ i = getenv_f("baudrate", tmp, sizeof(tmp));
if (i > 0) {
gd->baudrate = simple_strtoul(tmp, NULL, 10);
} else {