aboutsummaryrefslogtreecommitdiff
path: root/board/socrates
diff options
context:
space:
mode:
authorStefan Herbrechtsmeier2023-05-02 12:23:04 +0200
committerTom Rini2023-05-16 16:12:21 -0400
commit35a6fdc58d7716b64b7b862a7f06c690ed4d57ab (patch)
tree1eb867e46550db57a712e5a86e865d4b18a6148d /board/socrates
parentb16fd7f75f6d213a42a4dfca7ae63b66dfb0f973 (diff)
powerpc/mpc85xx: socrates: Remove misuse of env is nowhere driver
When using a list of writeable variables, the initial values come from the built-in default environment since commit 5ab81058364b ("env: Complete generic support for writable list"). Remove unnecessary misuse of the env is nowhere driver as default environment. Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Diffstat (limited to 'board/socrates')
-rw-r--r--board/socrates/socrates.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/board/socrates/socrates.c b/board/socrates/socrates.c
index 02e6afb0999..1d63c81a9c8 100644
--- a/board/socrates/socrates.c
+++ b/board/socrates/socrates.c
@@ -13,7 +13,6 @@
#include <common.h>
#include <clock_legacy.h>
#include <env.h>
-#include <env_internal.h>
#include <init.h>
#include <pci.h>
#include <uuid.h>
@@ -222,19 +221,3 @@ int get_serial_clock(void)
{
return 333333330;
}
-
-enum env_location env_get_location(enum env_operation op, int prio)
-{
- if (op == ENVOP_SAVE || op == ENVOP_ERASE)
- return ENVL_FLASH;
-
- switch (prio) {
- case 0:
- return ENVL_NOWHERE;
- case 1:
- return ENVL_FLASH;
- default:
- return ENVL_UNKNOWN;
- }
- return ENVL_UNKNOWN;
-}