diff options
author | David Woodhouse <dwmw2@infradead.org> | 2020-08-04 10:05:46 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-10-14 11:16:34 -0400 |
commit | 4dee3f785124af2fb533e820579f2f1139c42f99 (patch) | |
tree | 9087a84dfc478d8ba2466737574f1242e57bc83d /drivers/mmc | |
parent | 684710dc33b8fa1c366ee9f11424b780f999724c (diff) | |
download | u-boot-4dee3f785124af2fb533e820579f2f1139c42f99.zip u-boot-4dee3f785124af2fb533e820579f2f1139c42f99.tar.gz u-boot-4dee3f785124af2fb533e820579f2f1139c42f99.tar.bz2 |
mmc: remove duplicate mmc_get_env_dev() implementations
Since it's so trivial I could just about tolerate this when there were only
two copies of it. But now there are about to be three.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/mmc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index d79cdef..11ce110 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -3111,3 +3111,12 @@ int mmc_set_bkops_enable(struct mmc *mmc) return 0; } #endif + +__weak int mmc_get_env_dev(void) +{ +#ifdef CONFIG_SYS_MMC_ENV_DEV + return CONFIG_SYS_MMC_ENV_DEV; +#else + return 0; +#endif +} |