summaryrefslogtreecommitdiff
path: root/common/env_mmc.c
diff options
context:
space:
mode:
authorIgor Grinberg <grinberg@compulab.co.il>2011-12-26 03:33:10 +0000
committerWolfgang Denk <wd@denx.de>2012-01-05 16:34:10 +0100
commitbf95df44ff69e3e365603e3e30664ec41bfe0c65 (patch)
treed6727b154fb2e17279acb141cd2975f60b243f10 /common/env_mmc.c
parent33e1e01820f9a1e19ab18c8791f3b2dc09165e2b (diff)
downloadu-boot-imx-bf95df44ff69e3e365603e3e30664ec41bfe0c65.zip
u-boot-imx-bf95df44ff69e3e365603e3e30664ec41bfe0c65.tar.gz
u-boot-imx-bf95df44ff69e3e365603e3e30664ec41bfe0c65.tar.bz2
env: factor out the env_get_char_spec() function
env_get_char_spec() function is duplicated across multiple environment files. Remove the duplication by providing a default implementation. Add "weak" declaration, so the default implementation can be overridden. Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Diffstat (limited to 'common/env_mmc.c')
-rw-r--r--common/env_mmc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/common/env_mmc.c b/common/env_mmc.c
index 8441c77..0c58ae1 100644
--- a/common/env_mmc.c
+++ b/common/env_mmc.c
@@ -54,11 +54,6 @@ static int __mmc_get_env_addr(struct mmc *mmc, u32 *env_addr)
int mmc_get_env_addr(struct mmc *mmc, u32 *env_addr)
__attribute__((weak, alias("__mmc_get_env_addr")));
-uchar env_get_char_spec(int index)
-{
- return *((uchar *)(gd->env_addr + index));
-}
-
int env_init(void)
{
/* use default */