From ac358beb85362fb2fac47aaec40a7e1bca49656c Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 3 Aug 2017 12:22:03 -0600 Subject: env: Drop the env_name_spec global Add a name to the driver and use that instead of the global variable declared by each driver. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- env/fat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'env/fat.c') diff --git a/env/fat.c b/env/fat.c index 1ff3d9d..eda18db 100644 --- a/env/fat.c +++ b/env/fat.c @@ -31,8 +31,6 @@ # endif #endif -char *env_name_spec = "FAT"; - env_t *env_ptr; DECLARE_GLOBAL_DATA_PTR; @@ -116,6 +114,7 @@ err_env_relocate: U_BOOT_ENV_LOCATION(fat) = { .location = ENVL_FAT, + ENV_NAME("FAT") #ifdef LOADENV .load = env_fat_load, #endif -- cgit v1.1