common: Drop net.h from common header
[oweals/u-boot.git] / board / highbank / highbank.c
index e51043aa91472ed221b93c7ee2b34cecfd9abec4..f7f2e2c52594d5b8b6f59ae4d13651f8757e7657 100644 (file)
@@ -1,11 +1,13 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright 2010-2011 Calxeda, Inc.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
 #include <ahci.h>
+#include <cpu_func.h>
+#include <env.h>
+#include <net.h>
 #include <netdev.h>
 #include <scsi.h>
 
@@ -80,7 +82,7 @@ int misc_init_r(void)
 
        boot_choice = readl(HB_SREG_A9_BOOT_SRC_STAT) & 0xff;
        sprintf(envbuffer, "bootcmd%d", boot_choice);
-       if (getenv(envbuffer)) {
+       if (env_get(envbuffer)) {
                sprintf(envbuffer, "run bootcmd%d", boot_choice);
                env_set("bootcmd", envbuffer);
        } else