net: fec: add fuse check
[oweals/u-boot.git] / drivers / net / netconsole.c
index 11dbf5375b116e76843986b3b4d1e00a7664eb5f..73005ff94d9f27635317b183271c25f5124dd186 100644 (file)
@@ -1,12 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2004
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
 #include <command.h>
+#include <env.h>
 #include <stdio_dev.h>
 #include <net.h>
 
@@ -56,7 +56,7 @@ static int is_broadcast(struct in_addr ip)
        static struct in_addr netmask;
        static struct in_addr our_ip;
        static int env_changed_id;
-       int env_id = get_env_id();
+       int env_id = env_get_id();
 
        /* update only when the environment has changed */
        if (env_changed_id != env_id) {
@@ -76,7 +76,7 @@ static int refresh_settings_from_env(void)
 {
        const char *p;
        static int env_changed_id;
-       int env_id = get_env_id();
+       int env_id = env_get_id();
 
        /* update only when the environment has changed */
        if (env_changed_id != env_id) {