summaryrefslogtreecommitdiff
path: root/arch/mips/cpu/incaip_clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/cpu/incaip_clock.c')
-rw-r--r--arch/mips/cpu/incaip_clock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/cpu/incaip_clock.c b/arch/mips/cpu/incaip_clock.c
index fc2c621..b65dfe0 100644
--- a/arch/mips/cpu/incaip_clock.c
+++ b/arch/mips/cpu/incaip_clock.c
@@ -105,7 +105,7 @@ int incaip_set_cpuclk (void)
char tmp[64];
ulong cpuclk;
- if (getenv_r ("cpuclk", tmp, sizeof (tmp)) > 0) {
+ if (getenv_f("cpuclk", tmp, sizeof (tmp)) > 0) {
cpuclk = simple_strtoul (tmp, NULL, 10) * 1000000;
cgu_init (cpuclk);
ebu_init (cpuclk);