net: ks8851: Checkpatch cleanup
[oweals/u-boot.git] / net / eth_common.c
index 0af91a9642ef1ebd0a48a1e888af0e968920d0fc..58f899a02405597673450630eaffd2ab6d8365ba 100644 (file)
@@ -1,14 +1,14 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2001-2015
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  * Joe Hershberger, National Instruments
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <dm.h>
-#include <environment.h>
+#include <env.h>
 #include <miiphy.h>
 #include <net.h>
 #include "eth_internal.h"
@@ -111,7 +111,7 @@ void eth_set_current(void)
        static int  env_changed_id;
        int     env_id;
 
-       env_id = get_env_id();
+       env_id = env_get_id();
        if ((act == NULL) || (env_changed_id != env_id)) {
                act = env_get("ethact");
                env_changed_id = env_id;