diff options
Diffstat (limited to 'arch/m68k/lib/bootm.c')
-rw-r--r-- | arch/m68k/lib/bootm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/m68k/lib/bootm.c b/arch/m68k/lib/bootm.c index fa9c4930814..c976904fa9c 100644 --- a/arch/m68k/lib/bootm.c +++ b/arch/m68k/lib/bootm.c @@ -113,7 +113,8 @@ static void set_clocks_in_mhz (bd_t *kbd) { char *s; - if ((s = getenv("clocks_in_mhz")) != NULL) { + s = env_get("clocks_in_mhz"); + if (s) { /* convert all clock information to MHz */ kbd->bi_intfreq /= 1000000L; kbd->bi_busfreq /= 1000000L; |