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/dataflash.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'env/dataflash.c') diff --git a/env/dataflash.c b/env/dataflash.c index 8ab482b3b40..9421a6a5b23 100644 --- a/env/dataflash.c +++ b/env/dataflash.c @@ -16,8 +16,6 @@ DECLARE_GLOBAL_DATA_PTR; env_t *env_ptr; -char *env_name_spec = "dataflash"; - static unsigned char env_dataflash_get_char(int index) { uchar c; @@ -70,6 +68,7 @@ static int env_dataflash_save(void) U_BOOT_ENV_LOCATION(dataflash) = { .location = ENVL_DATAFLASH, + ENV_NAME("dataflash") .get_char = env_dataflash_get_char, .load = env_dataflash_load, .save = env_save_ptr(env_dataflash_save), -- cgit v1.2.3